[Select] calling .focus()
on the ref does not focus the component
#44197
Labels
component: select
This is the name of the generic UI component, not the React module!
Steps to reproduce
https://mui.com/material-ui/react-select/
document.getElementById('demo-simple-select').focus()
Current behavior
If you call .focus() on any of the elments that are rendered by MuiSelect or on the refs element it will not focus the select or it will only visually focus it, but pressing space to open the menu will not work (and instead scrolls the page down).
Expected behavior
That I can call .focus on the ref or an element to focus the select or that there is an alternative way documented / implemented
There is nothing document about this behavior in the docs.
Context
Having a way to programmatically focus an select
Your environment
Mui@6, Chrome
Search keywords: MuiSelect
The text was updated successfully, but these errors were encountered: