-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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
[material-ui][Autocomplete] Requiring double escape key press to trigger clearOnEscape
#41059
Comments
clearOnEscape
Hey @EyaOuenniche, thanks for the report! I'm not able to repro this on Chrome, Safari, or Firefox. I'm running MacOS. Screen.Recording.2024-02-16.at.15.10.23.movCould you provide more information about the OS and browser you're using? Thanks. |
hello, |
I tried playing with the second autocomplete in the Playground but I couldn't see any issues (Edge 123 on Windows 11). |
Sadly, without a repro it isn't easy to debug this. @EyaOuenniche do you think there might be something in your setup or settings that might be related to this? |
@EyaOuenniche you're welcome 😊 |
Steps to reproduce
Link to live example: https://mui.com/material-ui/react-autocomplete/
Steps:
1.Go to the Autocomplete demo page
2.Focus on the Autocomplete input field with clearOnEscape set to true
3.Select any item or enter text into the input field.
4.Press the Escape key once and observe the behavior.
5. Press the Escape key a second time to see the input clear.
Current behavior
The input is cleared only after pressing the Escape key twice.
Expected behavior
A single press of the Escape key should clear the input when clearOnEscape is enabled.
Context
No response
Your environment
npx @mui/envinfo
Search keywords: Autocomplete, clearOnEscape,bug
The text was updated successfully, but these errors were encountered: