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

Set new Max Date via JS; Selection higher than max date possible #587

Open
Voelundr opened this issue Mar 23, 2017 · 0 comments
Open

Set new Max Date via JS; Selection higher than max date possible #587

Voelundr opened this issue Mar 23, 2017 · 0 comments

Comments

@Voelundr
Copy link

Voelundr commented Mar 23, 2017

Hello,
I have a input with type date with max attribute set to a date A.
If I now set a new max date B lower than the old date A to the date input I can now select a date higher than the new date B. But If I select a higher date as the new date B an error is displayed correctly.
Here is a jsfiddle: https://jsfiddle.net/2L86bue9/
My expectation is that if I set a new max date B, I can only select until that date B and not until date A. Provided date B is earlier than date A.
Is this my code or is this a general error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant