nasa / common-mapping-client

CMC is a starter-kit for creating web-based mapping applications
https://nasa.github.io/common-mapping-client/branches/master/
Other
65 stars 29 forks source link

date picker shows error erroneously #71

Closed flynnplatt closed 6 years ago

flynnplatt commented 6 years ago

When you use the inputs to change the date and hit enter the input underlines red, indicating an error even if the date change was successful

AaronPlave commented 6 years ago

Hmm, is this expected behavior?

date_input_error

flynnplatt commented 6 years ago

yeah, 2020 is outside the min/max date range. So it snaps to the last valid value and shows red because of the error. We also have blur events act as a submit so when you click out it is "submitting" the now valid year

AaronPlave commented 6 years ago

Ah right. Not entirely sure what I was looking at, re-checked things and everything looks good to me.