-
Notifications
You must be signed in to change notification settings - Fork 831
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
In inline mode, when current day is disable, opening the picker is select the first enabled day. #1300
Comments
It is by design. |
It's not consistent. In addition, it's only occurs in inline mode. |
Yeah, I know. We probably can consider changing it in #1293. But right now if current day is disabled picker will automatically select the closest one. What behavior you want to see there? Highlight the disabled date? |
Environment
Steps to reproduce
(with moment, for example: shouldDisableDate={(date)=>date.isSame(moment(),'day')} )
Expected behavior
No date is selected.
Actual behavior
When open the picker, the first enabled day is selected.
Live example
https://codesandbox.io/s/material-ui-pickers-usage-demo-qxylf
The text was updated successfully, but these errors were encountered: