-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[pickers] The field should be clearable by default #4730
Comments
I have now found, that there is already a property for it "clearable". |
I'm reopening it as it looks like a bug and a wrong behavior. A native date input is clearable by default so is the Autocomplete. We have added the |
Working on it 🙂 |
Well, is there any way to remove the |
Was about to open a new issue but might be covered with the work here - there doesn't appear to be a clear icon on this component (as there is for autocomplete). I guess it is similar to a standard TextField in this respect, but would be good for consistency if all fields could have this option. Have tested on desktop with DatePicker and DesktopDatePicker. |
Relates to #4450 I agree that we could have the clearable input icon by default. |
Closing in favor of #4450 to keep a single source of truth. |
Current Behavior 😯
If we are using a Datepicker from the Material UI Lab in Material UI 5. The date can be cleared on the desktop version and it works gerat.
On the mobile version it indicates, that the field is filled wrong when it is empty.
Expected Behavior 🤔
The datepicker should be able to set the date in the mobile version to null too.
Steps to Reproduce 🕹
Steps:
Your Environment 🌎
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: