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 comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
The
option should only be used if the option is set to .Per
's docs (http://api.jqueryui.com/datepicker/#option-selectOtherMonths):"This only applies if the showOtherMonths option is set to true."