foundation-datepicker
foundation-datepicker copied to clipboard
Date validation failed because check (date && date.length > this.formatText.length) / but date is valid
Version : 1.5.6 Datepicker configuration : { weekStart: 1, format: 'm/d/yyyy' }
in my case i would a date without 0 when days or months are less than 10 so i used this pattern 'm/d/yyyy'. but when i selected a date like '3/28/2017' date validation failed becasue of this test Line 434
if (date && date.length > this.formatText.length) {
$(this.picker).addClass('is-invalid')
$(this.element).addClass('is-invalid-input')
return;
}
but my selected date is valid
Same here - this validation doesn't respect full month names, like 'M' or 'MM'
Also see #176
I get an "Invalid date" when using format dd/mm/yyyy on days 13 and above.