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

Edit possibility #133

Open
we2seek opened this issue Sep 5, 2016 · 8 comments
Open

Edit possibility #133

we2seek opened this issue Sep 5, 2016 · 8 comments

Comments

@we2seek
Copy link

we2seek commented Sep 5, 2016

Thanks for this awesome calendar picker. But I can't figure out how to add possibility to edit selected date from keyboard. Please, show me how. Is it possible at all?

@nazar-pc
Copy link
Owner

nazar-pc commented Sep 5, 2016

Can you elaborate what do you mean by controlling from keyboard?

@we2seek
Copy link
Author

we2seek commented Sep 5, 2016

I mean edit date in input field from keyboard

@nazar-pc
Copy link
Owner

nazar-pc commented Sep 5, 2016

With 3.0 version (latest major) you can type date from keyboard.
I'm sorry, demo was not working, but it is fixed already.
Can you try it now?

@we2seek
Copy link
Author

we2seek commented Sep 5, 2016

Thanks a lot. I'll try it later

@we2seek
Copy link
Author

we2seek commented Sep 6, 2016

Hi! I have some attempts to start with 3.0.2 version. On JSFiddle and locally and catch one kind exception: pickmeup.min.js:32 Uncaught TypeError: Cannot use 'in' operator to search for 'current' in undefined.
Would you help me? https://jsfiddle.net/we2seek/712z0c69/17/

--- UPD: Fix pickmeup('.single') replace with 'pickmeup('.single',{})'

@nazar-pc
Copy link
Owner

nazar-pc commented Sep 6, 2016

3.0.3 should work fine with just pickmeup('.single').
Does keyboard work for you eventually?

@we2seek
Copy link
Author

we2seek commented Sep 6, 2016

No, it doesn't. I can change the 1 digit only. Try it on JSFiddle. When input date is 06-09-2016 put cursor to the end of line and press backspace two times

@nazar-pc
Copy link
Owner

nazar-pc commented Sep 6, 2016

Yes, when you change date (when removing one digit) it'll try to parse the whole string and then render it back. Since original string is not valid, it'll be replaced with correct string. Not the most convenient way, but this is how it works right now.
I'll think about introducing some delay or something else to make it behave more natural.

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