Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pickadate.js "steals" Enter keypress #72

Closed
egidijusz opened this issue Jan 23, 2013 · 1 comment
Closed

pickadate.js "steals" Enter keypress #72

egidijusz opened this issue Jan 23, 2013 · 1 comment
Labels

Comments

@egidijusz
Copy link

Hello,

first I would like to thank you for such a nice plugin! :)

But there is this huge problem - it steals Enter key press from form element. Any element. So basically form in which there is a pickadate element can not be submitted by pressing Enter.
Check this code -> http://jsbin.com/obuvik/1/edit
If you click on a first input box and press Enter - pickadate will focus second input box and form is not submitted.

Is this a bug or did I miss something in documentation? :)

@amsul
Copy link
Owner

amsul commented Jan 23, 2013

Oh, that's a good catch!

The "enter" key is bound to the calendar to select the date when the calendar is open. This should be unbound when the calendar is closed. Thanks for reporting it :)

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

No branches or pull requests

2 participants