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

Fix sidenav "escape" key bug #1024

Merged
merged 5 commits into from
Oct 12, 2024
Merged

Fix sidenav "escape" key bug #1024

merged 5 commits into from
Oct 12, 2024

Conversation

richard-to
Copy link
Collaborator

Changes:

  • Add on opened change event handler (so user can update state) when escape pressed
  • Add disable_close property to prevent escape from being used
  • Drive bys:
    • Add position property so sidenav can be rendered on the right side
    • Minor style adjustments to sidenav demo

Closes #1019

Changes:

- Add on opened change event handler (so user can update state) when
  escape pressed
- Add disable_close property to prevent escape from being used
- Drive bys:
  - Add position property so sidenav can be rendered on the right side
  - Minor style adjustments to sidenav demo

Closes google#1019
Copy link
Collaborator

@wwwillchen wwwillchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx! 1 comment on the default value here for sidenav

mesop/components/sidenav/sidenav.py Outdated Show resolved Hide resolved
@richard-to richard-to merged commit 9bbb62e into google:main Oct 12, 2024
6 checks passed
@richard-to richard-to deleted the sidenav-fix branch October 26, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sidenav on esc close menu
2 participants