-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Overflow menu needs to be navigable using arrow keys #1233
Comments
@tw15egan Actually, I would label this as a bug. :) |
@carmacleod Hi Carolyn, in #666 you mentioned "the menu should open on space and optionally down and/or up arrow (not just enter)". Looking at http://www.carbondesignsystem.com/components/overflow-menu/code the space key does not seem to have same behavior as enter key, is this behavior correct? should we expect the space key to behave same as enter key? |
Hi @johnharan. Space and enter do work exactly the same for me. I'm on Windows 7. Are you on a Mac? I can't test on a Mac until this evening. |
@carmacleod I've tested some more, and it appears that the issue is only on firefox. Edit: It seems for our team's implementation, space is causing the page to scroll in chrome as well as firefox. |
To stop the page from scrolling, your key event handler needs to have event.preventDefault(); See also: #1398 for the Esc key. |
🎉 This issue has been resolved in version 9.68.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Awesome! Thanks! |
Fantastic! Will update our version to pick up the fix. @asudoh will this fix also be ported to |
@lauraalkhoury there is a ticket opened by @carmacleod in the React repo about this issue already https://github.com/IBM/carbon-components-react/issues/1741, and I'm looking to resolve it soon |
Has this issue also already been resolved in carbon-components-react? |
As a follow-on to #666:
The text was updated successfully, but these errors were encountered: