[DateTimePicker] disablePast
is not disabling or validating time
#4868
Labels
bug 🐛
Something doesn't work
component: DateTimePicker
The React component.
component: pickers
This is the name of the generic UI component, not the React module!
Current Behavior 😯
When adding disablePast to DateTimePicker, previous dates are disabled and validations kicks in when typing past date. But the time picker are not disabling past time, and there is no validation to it either.
Expected Behavior 🤔
If current date is selected, past time should also be disabled in picker, and validation/onError should happen when typing past time.
Steps to Reproduce 🕹
https://codesandbox.io/s/datetimepicker-disablepast-qr8re?file=/src/App.tsx
Steps:
Context 🔦
I want to validate that the datetime is not in the past and is not before some other date (so I've already used the minDateTime for that)
Your Environment 🌎
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: