-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Date picker bug with disablePast #12373
Comments
Hi, This |
Confirming that this is a problem with the pickers behavior. |
I apologize for the confusion, |
How did we do @stephenwade? |
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/twilight-paper-kgh5c9
disablePast
attribute to the date picker.Current behavior
The typical behavior is to keep the time component the same. After following the above steps, the time component will be reset to 00:00:00.
Expected behavior
The time component should not change.
Context
The date picker is modifying a date with a time component of 23:59:59. In most cases, the result after the date picker still has a time of 23:59:59, but in this case the time is reset to 00:00:00.
Your environment
npx @mui/envinfo
I used Google Chrome.
Search keywords: date picker disablePast
The text was updated successfully, but these errors were encountered: