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

[Autocomplete] Drop list no close outline mouse #19778

Closed
temaivanoff opened this issue Feb 19, 2020 · 5 comments · Fixed by #19794
Closed

[Autocomplete] Drop list no close outline mouse #19778

temaivanoff opened this issue Feb 19, 2020 · 5 comments · Fixed by #19794
Assignees
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module!

Comments

@temaivanoff
Copy link

Tech Version
Material-UI v4.9.3
React v16.12.0
Browser Chrome
TypeScript
etc.

Hi, please, look at the gif with the problem
1

@oliviertassinari oliviertassinari added the status: waiting for author Issue with insufficient information label Feb 19, 2020
@oliviertassinari

This comment has been minimized.

@oliviertassinari oliviertassinari changed the title [AutoComplete] Drop list no close outline mouse [Autocomplete] Drop list no close outline mouse Feb 19, 2020
@oliviertassinari oliviertassinari added component: autocomplete This is the name of the generic UI component, not the React module! bug 🐛 Something doesn't work and removed status: waiting for author Issue with insufficient information labels Feb 19, 2020
hasanozacar added a commit to hasanozacar/material-ui that referenced this issue Feb 21, 2020
@thundermiracle
Copy link

I'm running into the same issue.
Force focus the input after click indicator will solve the problem.

--- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js
+++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js
@@ -756,6 +756,7 @@ export default function useAutocomplete(props) {
     if (open) {
       handleClose(event);
     } else {
+      inputRef.current.focus();
       handleOpen(event);
     }
   };

@m-apsolon
Copy link

m-apsolon commented May 20, 2020

I still have the same problem as shown in the GIF, but with multiple selection enabled. Does someone have a tip for a workaround?

@oliviertassinari
Copy link
Member

@m-apsolon Do you have a reproduction?

@m-apsolon
Copy link

m-apsolon commented May 20, 2020

@oliviertassinari no, unfortunately not yet, just stumbled on this thread via google. It's also difficult to reproduce on our implementation, because it's happening sporadically.

Edit: it could've been a problem with the fact that i used onOpen & onClose to set some other states i needed, without using controlled open state. After removing those, can't currently reproduce the open stuck state at all anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants