-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Pressing enter or escape when no field is bound will cause an error #611
Comments
Same problem here |
Same problem here. After upgrading to latest Pikaday release, lots of exceptions are logged in our application due to this. We had to revert to previous version. Should be a very easy fix, so I will create a pull request. |
rikkert
added a commit
that referenced
this issue
Feb 13, 2017
Fixed issue #611: Pressing enter or escape when no field is bound will cause an error.
You can get around this without any ostensible side-effects by chucking in an otherwise useless input after initialisation: var picker = new Pikaday(options);
picker._o.field = document.createElement('input'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code will cause the pikaday throw an error when no fields has been attached to the pikaday.
Cannot read property 'blur' of null
https://github.com/dbushell/Pikaday/blob/master/pikaday.js#L489
The text was updated successfully, but these errors were encountered: