Skip to content

[Autocomplete] Drop list no close outline mouse #19778

@temaivanoff

Description

@temaivanoff
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

Activity

oliviertassinari

oliviertassinari commented on Feb 19, 2020

@oliviertassinari
changed the title [-][AutoComplete] Drop list no close outline mouse[/-] [+][Autocomplete] Drop list no close outline mouse[/+] on Feb 19, 2020
added
scope: autocompleteChanges related to the autocomplete. This includes ComboBox.
type: bugIt doesn't behave as expected.
and removed on Feb 19, 2020
added a commit that references this issue on Feb 21, 2020
thundermiracle

thundermiracle commented on Feb 21, 2020

@thundermiracle

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

m-apsolon commented on May 20, 2020

@m-apsolon

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

oliviertassinari commented on May 20, 2020

@oliviertassinari
Member

@m-apsolon Do you have a reproduction?

m-apsolon

m-apsolon commented on May 20, 2020

@m-apsolon

@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

Metadata

Metadata

Labels

scope: autocompleteChanges related to the autocomplete. This includes ComboBox.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @oliviertassinari@m-apsolon@temaivanoff@thundermiracle

    Issue actions

      [Autocomplete] Drop list no close outline mouse · Issue #19778 · mui/material-ui