-
Notifications
You must be signed in to change notification settings - Fork 361
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
Navigation menubar: Fix scroll-to-top problem reported in issue #1307 #1308
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change doesn't need or effect existing tests, so the "test review" can be marked as complete. As soon as I understand the necessity of the if (this.popupMenu)
I'll approve it.
Thanks for fixing this bug, @carmacleod!
@spectranaut |
Navigation menubar: Fix scroll-to-top problem for issue 1307 (pull #1308) Issue #1307 reported 2 problems with the navigation menubar example. This commit resolves the scroll to top issue by preventing menuitem anchor elements from jumping to href="#" (i.e. top of page in Chrome) if they have a menu/submenu. Co-authored-by: Matt King <[email protected]>
Issue #1307 reports 2 issues with the navigation menubar example. This PR resolves the scroll to top issue by preventing
menuitem
anchor elements from jumping tohref="#"
(i.e. top of page in Chrome) if they have a menu/submenu.Here's a preview link.
Review checklist