betsol / angular-input-date

AngularJS directive to enable support for date input type
38 stars 19 forks source link

Six characters allowed in year. #3

Closed jgodi closed 10 years ago

jgodi commented 10 years ago

On your demo, you can type the date in just fine for the day/months, but when you get to the year, it doesn't stop after 4. It allows for 6 characters and that causes issues with date input.

slavafomin commented 10 years ago

Hey @jgodi! Thanks for you observation. However this module is not controlling the look and behavior of the control itself, it is controller by the browser. I can confirm that Google Chrome allows input of six numbers for a year. I'm not sure why it's doing so, maybe it's some bizarre future compatibility. Probably, you should create an issue with Google Chrome, maybe Google developers will be able to shed some light on this.

jgodi commented 10 years ago

Sounds good. I will close this. Thanks!