-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[fields] The input loses focus after pressing on clear button #12574
Comments
Hello @CyanoFresh For me it seems that it is more of a visual problem, if I focus on the field after clearing it, the editing works, it's just that the section is not marked as selected. In any case, there seems to be a regression in the behavior of re-focusing the field after it is cleared—it used to be the case in v6. |
@LukasTy I have problems typing in a new value after field is cleared. On the video you can see that placeholder mask is light-grey and I am trying to type - but no value is getting in. |
@CyanoFresh Ok, I can confirm that this is quite a nasty bug. |
We are having the same issue! Can not enter text into date pickers after clear when we tab into the date fields. The textfield does not fill the value "MM/DD/YYYY" like it normally does and the user can not type. |
How did we do @CyanoFresh? |
@CyanoFresh, @c1oneman the fix has been merged and will be released with the next version (today or tomorrow). |
Thank you! |
Steps to reproduce
Link to live example: (required)
https://mui.com/x/react-date-pickers/date-picker/#clearing-the-value
Steps:
Focusing on something else and focusing the field again helps
Screen.Recording.2024-03-26.at.20.56.54.mov
Current behavior
Grey text (placeholder?) is shown and you couldn't type in new date
Expected behavior
Value is changable
Context
Issue appeared after upgrading to v7.0.0 from ^6.19.2. Before upgrade everything works as expected
Your environment
npx @mui/envinfo
Search keywords: clear, focus lost, couldn't type
The text was updated successfully, but these errors were encountered: