-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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] Fix listbox closing on Space keyUp #18754
Conversation
Details of bundle changes.Comparing: 36f0ce3...783afbf
|
Should we be able to select an option, once the select listbox is open, with the Space key? |
It's not native behavior either (which is quite lucky because this would've been quite complicated to fix). I already included a comment in case this comes up again: https://github.com/mui-org/material-ui/pull/18754/files#diff-7050430af13b48e8600cbb7534f65796R263 |
So I guess it depends on the platforms. On macOS, you can open the native select and pick an option, all with the space key. I haven't look at how it behaves on Windows and Linux distributions. |
Well done 👍 |
I hadn't considered that. I guess it's fair to choose the simpler (implementation wise) behavior in that case. One of the reasons why usage of native elements should be preferred. |
Agree |
A
<select>
does not select the focused action when a Space keyup event is dispatched.Includes a fix for
ButtonBase
ignoringpreventDefault
for non-native buttons.Closes #18691
Preview: https://deploy-preview-18754--material-ui.netlify.com/components/selects/