-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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] Clearing the value by clicking the clear button opens the listbox #43978
Comments
Related to #43976 ? |
@asnoeyink Thanks for reporting this, I can reproduce this consistently
I think the expected behavior should be "clicking the clear button should never open/close the listbox" right? (and per the v5 sandbox, whether the input has focus or not shouldn't matter) |
Yeah I did get that backwards, oops. I think your expected behavior is more correct. The issue I'm seeing in V6 is that clicking the clear button on the unfocused input opens the listbox. |
It doesn't repro for me on |
Yep, looks like it was fixed in #43982. Thanks! |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @asnoeyink How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: (required)
V6 (broken): https://stackblitz.com/edit/github-fr7tsj-ykudyp?file=src%2FApp.tsx
V5 (working): https://stackblitz.com/edit/github-y6gxof-bhyb6t?file=src%2FApp.tsx
Steps:
Current behavior
Expect the menu to be closed.
Expected behavior
Menu stays open (most of the time, sometimes it seems to close).
Context
If you do repeat the steps with mui v5, it closes as expected. Not entirely sure if this is intended behavior, but it broke some tests in my app when upgrading from v5 to v6. It seems to be a little nondeterministic though, which makes me think something is not right.
Your environment
npx @mui/envinfo
I use the latest firefox but this happens in chromium as well.
Search keywords: autocomplete,close,menu
The text was updated successfully, but these errors were encountered: