Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

How to enter date manually? #193

Open
alhimik1986 opened this issue Dec 8, 2017 · 4 comments
Open

How to enter date manually? #193

alhimik1986 opened this issue Dec 8, 2017 · 4 comments

Comments

@alhimik1986
Copy link

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
Copy link
Owner

nazar-pc commented Dec 8, 2017

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
Copy link
Author

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
Copy link
Owner

nazar-pc commented Dec 8, 2017

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
Copy link
Author

alhimik1986 commented Dec 8, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants