-
-
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
[base-ui][useSelect] Keyboard operations on the activation button not working for HTML element different than "button" #40486
Comments
The issue persists in |
It stopped working since version |
Thanks for the report @smellai! I opened a PR with the fix. |
This issue is fixed (thanks!) but in the latest versions |
It is expected: https://github.com/mui/material-ui/blob/master/CHANGELOG.md#muibase500-beta29. The change should be seamless. Has it impacted you negatively? Let me know and I can help with the migration. |
Yes, sorry I finally found the time to debug, will open a new issue |
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/boring-dawn-c5rxjv?file=%2Fsrc%2FDemo.tsx
Steps:
spacebar
orEnter
div
" to "button
" in line 42 of Demo.tsxCurrent behavior
pressing spacebar or Enter not activating the dropdown for the combobox
Expected behavior
pressing spacebar or Enter should open the combobox overlay
Context
I don't think "button" html element should be necessary as the role is overridden to "combobox" in any case.
It was working fine in @mui/base 5.0.0-beta.25
Your environment
npx @mui/envinfo
Search keywords: keyboard select combobox
The text was updated successfully, but these errors were encountered: