Undesired delay on highlighting MenuItem when navigating Menu with arrow keys
See original GitHub issueWhen a user navigates on a menu (dropdown) using arrow keys, the “current” item is not right away visually highlighted. Therefore, user cannot quickly navigate a long menu, and has to wait after each keypress for the highlight to appear to show him where he is.
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
Navigating on a Menu
using arrow keys must immediately highlight the current MenuItem
so user does not have to wait to see which items is highlighted.
Current Behavior
Currently there is a fade-in transition to highlight the background of MenuItem
. When navigating quickly on the items using keyboard, this transition prevents user from quickly seeing which item is currently highlighted. Therefore, user has to wait after each keypress to see which item he is on.
Steps to Reproduce (for bugs)
This can be observed on the official documentation page: https://material-ui-next.com/demos/menus/
Context
Filling forms with keyboard is common practice for heavy users of business apps. I noticed they have difficulties selecting from MUI dropdowns due to the misbehavior described above.
Your Environment
Tech | Version |
---|---|
Material-UI | beta 29 |
React | 16.1 |
browser | Chrome |
etc |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:12 (12 by maintainers)
Top GitHub Comments
No objection, I agree, we should solve one problem at the time. I was interested in the global picture.
Solving this issue would make me very happy. It’s a great objective 🧭 ! It’s a pleasure and an honor to review your work. Your pull requests have always been relevant.
@oliviertassinari Correct.
MenuList:handleKeyDown
would be looking at the children of thelist
DOM node and checking for tab index on those children.