Opened 7 years ago

Closed 7 years ago

#9026 closed bug (notabug)

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.

Change History (1)

comment:1 Changed 7 years ago by tj.vantoll

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."

Note: See TracTickets for help on using tickets.