mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.75k stars 32.24k forks source link

[material-ui][Select] selecting using the spacebar does not work #43874

Open BennyAlex opened 1 month ago

BennyAlex commented 1 month ago

Steps to reproduce

Link to live example: https://mui.com/material-ui/react-select/

Steps: Try selecting an option in Mui select using spacebar. It only works with enter.

This is a bad experience for keyboard users. Most of them expect the spacebar to work here. Escpecially with multi select is unpleasant.

With Autocomplete it works fine.

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo ``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```

Search keywords: spacebar, select

oliviertassinari commented 3 weeks ago

@atomiks It looks like Base UI's upcoming Select component is handling this correctly: https://github.com/mui/base-ui/pull/541.