-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Select] Keyboard navigation breaks when first child is ListSubheader #20448
Comments
A ListSubheader doesn't make much sense here. You'd need an abstraction that tells the Select that the iption is disabled. Direct children of Select need to be options. |
👋 Thanks for using Material-UI! We use GitHub issues exclusively as a bug and feature requests tracker, however, For support, please check out https://material-ui.com/getting-started/support/. Thanks! If you have a question on StackOverflow, you are welcome to link to it here, it might help others. |
@petermikitsh Please see #18200. I understand you are coming from our select group demo, we need to work on it. |
@oliviertassinari How should I implement this, in a way where the select input with headers is accessibility-friendly? |
I have no idea, did you look into the problem? |
@oliviertassinari using I made another example to demo keyboard navigation works properly when using native with the first element being an optgroup (the native equivalent of a ListSubheader): https://codesandbox.io/s/exciting-water-ki7eu?file=/src/index.js |
When the first child of a
Select
component isListSubheader
, you must press tab before up/down arrow key functionality works.Current Behavior 😯
tab key press is necessary.
Expected Behavior 🤔
tab keypress should not be necessary.
Steps to Reproduce 🕹
Steps:
Fix criteria: Step 6 is no longer necessary.
Context 🔦
Your Environment 🌎
The text was updated successfully, but these errors were encountered: