Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

When "December 10, 2010" is put in text field, javascript calendar won't popup: getFullYear is not a function #9

Open
triemstr opened this issue Aug 16, 2010 · 0 comments

Comments

@triemstr
Copy link

Discovered by Nick Murphy at Saturn Systems: http://www.saturnsys.com/

Put "December 10, 2010" in your text field that is connected to the javascript calendar. Then hit the calendar.

Get browser/js error: this.date.getFullYear is not a function

The bug is in the Date.parseFormattedString() call on line 338.
It returns a non-date object for the value we're providing it (looks to be an integer).

The result isn't handled so it passes through as an error and the calendar no longer pops up in this case.

However, if you just type "garbage" in the text field, the javascript calendar continues to popup.

Version 1.16.1.

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

No branches or pull requests

1 participant