PickMeUp icon indicating copy to clipboard operation
PickMeUp copied to clipboard

How to enter date manually?

Open alhimik1986 opened this issue 7 years ago • 4 comments

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

alhimik1986 avatar Dec 08 '17 12:12 alhimik1986

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

nazar-pc avatar Dec 08 '17 12:12 nazar-pc

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.

alhimik1986 avatar Dec 08 '17 14:12 alhimik1986

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).

nazar-pc avatar Dec 08 '17 14:12 nazar-pc

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).

alhimik1986 avatar Dec 08 '17 15:12 alhimik1986