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

Clearing input element causes error #45

Closed
bghveding opened this issue Oct 25, 2013 · 2 comments
Closed

Clearing input element causes error #45

bghveding opened this issue Oct 25, 2013 · 2 comments

Comments

@bghveding
Copy link

Hi,

Version: 2.0.1

Steps to reproduce

  • Open picker and choose a date
  • Clear datefield
  • Check console for error

If you select a date, then clear the input field afterwards, an error is thrown on line 519:

picker.setValue(picker.date.getTime());

The error:

Uncaught TypeError: Object [object Object] has no method 'getTime' 

Line 517 seems to be the culprit:

if (picker.date.isValid)
Eonasdan added a commit that referenced this issue Oct 28, 2013
@Eonasdan
Copy link
Owner

@bghveding check out the latest commit, should be fixed for ya.

@bghveding
Copy link
Author

Works like a charm, @Eonasdan. Thanks a lot! :)

Repository owner locked and limited conversation to collaborators Jun 17, 2017
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