Skip to content
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

[DatePicker] Selecting a year does not trigger validation #5197

Closed
ghost opened this issue Sep 16, 2016 · 1 comment
Closed

[DatePicker] Selecting a year does not trigger validation #5197

ghost opened this issue Sep 16, 2016 · 1 comment
Labels
component: date picker This is the name of the generic UI component, not the React module!

Comments

@ghost
Copy link

ghost commented Sep 16, 2016

Changing a year enables you to select an invalid date eg a Sunday when weekends are disabled.

Using the Date Picker example on the material-ui web site where selecting weekends is disabled, I selected September, 9, 2016 - a Friday. I then changed the year to 2012 when September 9th of September was a Sunday.

image

When I click the OK button the Sunday was selected.
image

I would have expected that pressing OK would have taken be back to the month/day selector and not allowed me to select the Sunday.

@oliviertassinari oliviertassinari changed the title Date Picker - selecting a year does not trigger validation [DatePicker] Selecting a year does not trigger validation Sep 16, 2016
@oliviertassinari oliviertassinari added the component: date picker This is the name of the generic UI component, not the React module! label Oct 19, 2016
@oliviertassinari
Copy link
Member

Closing for #4787

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: date picker This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

1 participant