[pickers] The DatePicker 'onAccept' event fires both when clicking on the Ok button and also when clicking outside the Picker (or pressing ESC), if the date has changed #11356
Labels
component: pickers
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
Summary 💡
It would be nice to differentiate the 2 behaviours:
Either a param on the 'onAccept' event, or a separate event would help. This way if you want to return to the previous date when clicking outside the Modal would still be possible. Otherwise you have no way of knowing which one of the 2 things happened (the user clicked on the OK button, or he clicked outside the Modal).
Thank you.
Examples 🌈
No response
Motivation 🔦
No response
Search keywords: DatePicker onAccept
The text was updated successfully, but these errors were encountered: