-
-
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] TimePicker minTime prop not allowing to pick the minimum time #14480
Comments
Hey @guna81 👋 You should be able to pass a correct mintime.mp4Hope this helps 😄 |
Hi @noraleonte, I tried to set second as 0, now it seems fine. I didn't know this minTime also using current time for second value. |
@noraleonte should we add a recipe/example or callout to the docs for this? Feels like this might not be clear enough! |
@michelengelen We could! @guna81 Happy to hear it works! It's something specific to dayjs though. Calling |
@noraleonte @michelengelen Are you sure that we are missing any documentation in this regard? 🤔 |
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/mui-time-picker-mintime-issue-xlnqhf
Steps:
Current behavior
Couldn't able to select the time that is given in the minTime prop of the TimPicker.
Expected behavior
Should be able to select the time that is given in the minTime prop of the TimPicker.
Context
When I am trying to pick the minimum time of the picker that I mentioned in the minTime props, I am getting an error behavior.
eg. I am setting 6:00 as a minimum, but if I select 6:00 in the picker, I will get an error in the picker.
Your environment
npx @mui/envinfo
Search keywords: time-picker, validation, minTime
The text was updated successfully, but these errors were encountered: