The code:
<input type="date">
Allows for users to enter any sort of ridiculous dates. For example, a user can set a future date of 01/01/123456 It seems to revert to a max year of 275760 if you try and enter 999999.
I was looking for a way to limit keyboard entry to force users to use the dropdown function to avoid this.
So far, the best I've been able to do is limit the date range of the input using max, which stops the typed year from being able to exceed the same amount of characters as the number of charcters you set for the year you select.
I though about setting this to 3000-01-01 as the max date to keep things under control. This would mean the user could only select from the dropdown dates until that date, but could manually enter the year up to 9999.
<input type="date" max='3000-01-01'>
Is there a way to lock keyboard entry whilst maintaining dropdown functionality?