[pickers] Return the previous value if the user click's out the MobileDatePicker Dialog #7700
Open
2 tasks done
Labels
component: pickers
This is the name of the generic UI component, not the React module!
new feature
New feature or request
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://mui.com/x/react-date-pickers/date-picker/ => MobileDatePicker
the value will return as it was
I will see the updated value
The bug:
3. click on the mobile date picker => select value => and click outside =>
I will see the updated value
Current behavior 😯
Click on the mobile date picker => select value => and click outside =>
I will see the updated value
Expected behavior 🤔
Click on the mobile date picker => select value => and click outside =>
the value will return as it was
?because I didn't accept the new value
Context 🔦
when I click close, onChange gets called again and with the old date, so i can return the old value
we can call the onChange
onClickOutSide
so the old value will return again with no changeYour environment 🌎
No response
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: