You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With 0f2923a it will no longer be possible to enter values that are longer than max. So, by default, you should be able to enter e.g. year as long as 6 digits (Sep 13 275760 is maximum allowable date in JavaScript), but setting maxDate to something lower than that, e.g. new Date(9999, 12, 31) will disable users from writing more than 4 digits in year input.
Currently, even if the format is 'M/d/yyy' you can enter any length input for month, day, or year.
I have tried using JavaScript to limit the amount of character that can be entered as input, but it does not work.
document.querySelectorAll('.react-date-picker__inputGroup__year').forEach(el => { el.setAttribute('maxlength', 4) el.setAttribute('max', 9999) })
Is there a suggested way to do this?
Otherwise, can we add this feature?
The text was updated successfully, but these errors were encountered: