date-input-polyfill
date-input-polyfill copied to clipboard
"min" and "max" attributes not working
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.
This is a relatively common use case for date inputs, +1
do you happen to know how good the browser support is?
Pretty good, aside from Safari: https://caniuse.com/#feat=input-datetime
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.