Skip to main content

Search and Top Navigation

#9026 closed bug (notabug)

Opened January 29, 2013 10:59AM UTC

Closed January 29, 2013 01:28PM UTC

Datepicker: click event fired when selectOtherMonths is true but showOtherMonths is false

Reported by: dunni01 Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version:
Keywords: Cc:
Blocked by: Blocking:
Description

Within the options of the Datepicker widget if you set the selectOtherMonths option to be true and the showOtherMonths to be false the click event is still fired when clicking on the space where other month dates would be shown if the showOtherMonths option were set to true. The result of this configuration is that the linked form input field is set to "NaN/NaN/NaN".

Whilst this is down to the a mis-configuration it might be worth preventing the click event (or whatever initiates the setting of the linked input control) from firing if the showOtherMonths option is set to false.

Attachments (0)
Change History (1)

Changed January 29, 2013 01:28PM UTC by tj.vantoll comment:1

resolution: → notabug
status: newclosed

The

selectOtherMonths
option should only be used if the
showOtherMonths
option is set to
true
.

Per

selectOtherMonths
's docs (http://api.jqueryui.com/datepicker/#option-selectOtherMonths):

"This only applies if the showOtherMonths option is set to true."