Skip to content
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

Upgrading from @material-ui/[email protected] to @material-ui/[email protected] causes different autofocus behaviour on autocomplete #20375

Closed
2 tasks done
FerusAndBeyond opened this issue Apr 1, 2020 · 1 comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@FerusAndBeyond
Copy link

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.

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

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.

@oliviertassinari oliviertassinari added duplicate This issue or pull request already exists component: autocomplete This is the name of the generic UI component, not the React module! labels Apr 1, 2020
@oliviertassinari
Copy link
Member

Duplicate of #18815

@oliviertassinari oliviertassinari marked this as a duplicate of #18815 Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants