Twipped / Kalendae

A javascript date picker that just works.
MIT License
1.99k stars 285 forks source link

Impossible to manually the date in an input #93

Closed acatton closed 11 years ago

acatton commented 11 years ago

In Firefox and Chrome – I didn't test with other browsers –, user cannot manually edit the date in the text field. Every-time a key is pressed, the date is parsed, and the content of the text field is overridden.

For example, if I want to enter 1/1/2012: I type 1, and by the time I type /, the content of the text field is replaced with 01/01/0000.

Here's my proposed fix.

Feel free to comment/criticize my fix.

Twipped commented 11 years ago

Please test this issue against the dev branch, I had a patch for this problem which hasn't yet been merged to master.

acatton commented 11 years ago

@ChiperSoft

My bad, I didn't try devbranch. It's actually fixed in dev branch.

Thanks.