date-input-polyfill icon indicating copy to clipboard operation
date-input-polyfill copied to clipboard

"min" and "max" attributes not working

Open Spetnik opened this issue 7 years ago • 4 comments

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.

Spetnik avatar Jul 31 '17 09:07 Spetnik

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

ktraff avatar Oct 25 '17 15:10 ktraff

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

muelli avatar Apr 24 '18 17:04 muelli

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

Spetnik avatar Apr 24 '18 17:04 Spetnik

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.

muelli avatar Apr 24 '18 17:04 muelli