-
-
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] multiselect clearIndicator not working when focus is on autocomplete and limitTags is set #44116
Comments
I think this is related to 43978. |
|
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. |
sorry, I forgot to respond to this. No, it does not clear the text. The menu closes and opens, which triggers the input to shrink and resize, and the clear button doesn’t trigger for some reason. This definitely did not happen with MUI v5, I even tried it with the same demo on the MUI webpage by toggling to v5, and it definitely was behaving appropriately. It might trigger sometimes, especially if you only have 2-3 lines of options selected when you click the clear button, but keep selecting more values, and the larger the input gets, the less it is likely to work.
|
Works in the latest version. Fixed in |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @jbrunner92 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)
This is the mui demo itself for limiting tags: https://codesandbox.io/embed/z4jps3?module=/src/Demo.tsx&fontsize=12
Steps:
Current behavior
I get mixed behavior. Usually it either loses focus on the textfield, sometimes it closes and reopens the autocomplete drop down.
Expected behavior
If I click the clear indicator, it should clear the text, even when the textfield has focus and the dropdown is opened. See the v5 demo - https://codesandbox.io/p/sandbox/2dhj9z?file=%2Fsrc%2Findex.tsx
Context
No response
Your environment
npx @mui/envinfo
Search keywords: autocomplete clearIndicator limitTags multiselecct
Search keywords:
The text was updated successfully, but these errors were encountered: