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

"min" and "max" attributes not working #32

Open
Spetnik opened this issue Jul 31, 2017 · 4 comments
Open

"min" and "max" attributes not working #32

Spetnik opened this issue Jul 31, 2017 · 4 comments

Comments

@Spetnik
Copy link

Spetnik commented Jul 31, 2017

See https://www.w3.org/TR/2010/WD-html5-20101019/common-input-element-attributes.html#attr-input-max and https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date#Setting_maximum_and_minimum_dates
The "min" and "max" attributes should restrict the date range in the date picker.

@ktraff
Copy link

ktraff commented Oct 25, 2017

This is a relatively common use case for date inputs, +1

@muelli
Copy link

muelli commented Apr 24, 2018

do you happen to know how good the browser support is?

@Spetnik
Copy link
Author

Spetnik commented Apr 24, 2018

Pretty good, aside from Safari: https://caniuse.com/#feat=input-datetime

@muelli
Copy link

muelli commented Apr 24, 2018

Ah, I did not read the footnote in the way that everything but Safari supports min/max. But I see now how you can read it like that. Thanks.

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

3 participants