Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the mobile layout, when a page is selected, the sidebar should automatically close. #9

Open
yeojunjie opened this issue Jun 10, 2022 · 1 comment
Assignees
Labels
design Things that have "no function" and are purely cosmetic

Comments

@yeojunjie
Copy link
Contributor

No description provided.

@yeojunjie yeojunjie added the design Things that have "no function" and are purely cosmetic label Jun 10, 2022
@yeojunjie yeojunjie self-assigned this Jun 10, 2022
@yeojunjie
Copy link
Contributor Author

Somehow,

onClick={ () => {
  props.setActivePage("..."); // Line 2
  props.toggleIsMobileSidebarOpen(); // Line 3
  alert("Hi");
} }

does not work. alert() does not run.

Swapping Line 3 with Line 2 prevents Line 2 from taking effect. :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Things that have "no function" and are purely cosmetic
Projects
None yet
Development

No branches or pull requests

1 participant