-
-
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] DatePicker missing onValidDate prop #15951
Comments
Thanks for the feedback. Could you elaborate what kind of UI/UX you would like and why you need an |
One scenario. I have a page with a date picker and a table that shows some results based on 'date picker' value. Each time the users selects a new valid date the table will show new results (calculations done in a server). From a 'date picker component' user point of view I'm only interested on new valid dates to trigger a request to the server. I don't care if the user entered an invalid date or if he is entering a new date manually as I will keep my table with 'old' results. hope it helps |
On the pickers in |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @david-ic3 How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
When using the DatePicker I'm missing a callback property that will only be called when the date is valid :
What i get is, onChange called with invalid dates and dates out of bounds. onAccept is called when a date is clicked in the popper calendar.
The second parameter of onChange is returning the input value (not the pickerSelectionState)
You can check console logs using this demo (demo.tsx)
https://codesandbox.io/s/basicdatepicker-material-demo-forked-izqnh
The text was updated successfully, but these errors were encountered: