[fields] "Format" is still being used as MobileDatePicker input value, even after the dialog is closed #13679
Labels
bug 🐛
Something doesn't work
component: pickers
This is the name of the generic UI component, not the React module!
feature: Keyboard editing
Related to the pickers keyboard edition
mobile
Targets mobile platform
Steps to reproduce
Link to live example: https://codesandbox.io/s/sad-firefly-c5ptqr?file=/src/Demo.js
Steps:
Current behavior
Date picker input "value" is set to "format".
Expected behavior
Date picker input "value" should be "null" (blank)
Alternatively, for
MobileDatePicker
(andMobileDateTimePicker
), it might not be necessary for placeholder to be assigned as value when the input is focused. Since the expectation is for the user to pick the date (& time) via the date picker dialog.Context
We customized the default date picker actionbar, to enable user to "Clear" current value of the datepicker.
Your environment
npx @mui/envinfo
Reproducible in code sandbox, browser: Chrome.
Search keywords: datepicker format placeholder
The text was updated successfully, but these errors were encountered: