Upgrading from @material-ui/[email protected] to @material-ui/[email protected] causes different autofocus behaviour on autocomplete #20375
Labels
component: autocomplete
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
In alpha.44 with autoFocus on the TextField of the Autocomplete the options are shown but in alpha.47 they aren't. I'm not sure if this is something that was decided but I couldn't find any way to make it to the former behaviour which I want.
Current Behavior 😯
With autofocus the textfield is focused but options aren't shown.
Expected Behavior 🤔
The options should be shown (in my opinion).
Steps to Reproduce 🕹
New version (alpha.77):
https://codesandbox.io/s/material-demo-gz055
as you can see the autocomplete is focused but no options are shown.
Old version (alpha.44):
https://codesandbox.io/s/material-demo-1xqkm
The autocomplete is focused and options are shown.
Context 🔦
I have a search that dynamically appears and I want all options to be shown immediately.
Your Environment 🌎
See codesandbox.
The text was updated successfully, but these errors were encountered: