Opened 8 years ago

Closed 8 years ago

#3778 closed bug (fixed)

Unable to sellect month: numberOfMonths - maxDate - changeMonth combi bug.

Reported by: Briel Owned by:
Priority: minor Milestone: 1.7
Component: ui.datepicker Version: 1.6rc4
Keywords: Cc:
Blocked by: Blocking:

Description

I have found a bug, and have a guess as to why it sometimes occurs.

It seems, when you are displaying several months and have set a max low date, the month drop down can break. You can't change the month, until you change the year or press prev/next month. This happens when the month drop down, is located on a month with a different year than the current.

Mt guess is, when the month drop down selector is located in a different year than the current day, the default year is displayed correct but is in reality the current year, thus making the month selections invalid by the max date. However when you yourself pick that year, it is then treated corrects thus enabling month selections.

To reproduce the bug, just set the maxDate at '1d' and numberofMonths to 1 + the month number (jan = 1).

Change History (1)

comment:1 Changed 8 years ago by kbwood

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r1673.

Note: See TracTickets for help on using tickets.