nazar-pc / PickMeUp

Really simple, powerful, customizable and lightweight standalone datepicker
BSD Zero Clause License
616 stars 191 forks source link

How to enter date manually? #193

Open alhimik1986 opened 6 years ago

alhimik1986 commented 6 years ago

Hi. I can't enter a date manually using keyboard, because the cursor jumps to the end of the date in text field.

nazar-pc commented 6 years ago

This is something that can be improved, it tries to parse date after each character and overrides input's contents. For now you can have input field and PickMeUp instances separately and manually show/hide datepicker as well as handle change event and calling set_date() method.

I'll mark this as an enhancement

alhimik1986 commented 6 years ago

This bug appears when option.default_date is true. When default_date is false, I can edit date easily (no bug). You can check it out in right in demo page: http://nazar-pc.github.io/PickMeUp/ just try to edit the date.

nazar-pc commented 6 years ago

It is not because of default_date, I've already described why it happens (it will happen with default_date once you select some date).

alhimik1986 commented 6 years ago

I have selected some date with datepicker and then tried to change date with keyboard. But the bug appears when default_date is true. The handler parse date well when default_date is false. But when default_date is true the parsing is not working well (the cursor jumps to the end of date).