Skip to content
This repository was 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

@triemstr

Description

@triemstr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions