[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: