NYPD / ritsu.js

HTML form validation
MIT License
2 stars 0 forks source link

jQuery Datepicker does not validate hand entered dates #33

Closed NYPD closed 7 years ago

NYPD commented 8 years ago

When manually typing a date, the datepicker does not check for any constraints like min date or max date. It only makes sure that the input is in the correct format using contrainInput.

Perhaps ritsu should try to read the options and validate it for them, or maybe see if it can re-set the date and have it rejected by datepicker.

NYPD commented 7 years ago

This might be a tough cookie. There can be multiple implementations based on the date format and locale. This should not be handled by ritsu and there are so many datepicker plugins out there that it is not guaranteed a user will be using this one.