Opened 5 years ago

Last modified 2 years ago

#18596 assigned defect

dojox/Calendar next/previous buttons break when used with minDate/maxDate

Reported by: inanutshellus Owned by: dg
Priority: undecided Milestone: 1.14
Component: Dojox Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:

Description

There's some strange behavior with the next/previous buttons on the Month view when you use minDate/maxDate.

If you click Next, the view stops changing (which is desirable). If you click Next again, however, you'll notice it now takes you 2 clicks of the Previous button to be able to change months again.

For example:

Let's say December is the last viewable month, and you're currently on NOV.

BTN  VIEW
     NOV
NEXT DEC
NEXT DEC  <-- You hit the max, and can't continue. This is desired.
PREV DEC  <-- PREV at this point should send you back to NOV
PREV NOV  <-- After a second PREV you go to NOV

--------
     NOV  <-- Another example to show it gets progressively worse as you click.
NEXT DEC
NEXT DEC
NEXT DEC
NEXT DEC  <-- Must click PREV 4 times to get to NOV. Should be 1.

I have an example of the behavior here:

http://jsfiddle.net/inanutshellus/jogLk5ps/

There's also a proposed solution there (uncomment line 31).

Change History (3)

comment:1 Changed 5 years ago by bill

Component: DojoX WidgetsDojox
Owner: changed from dante to dg
Status: newassigned

comment:2 Changed 4 years ago by dylan

Milestone: tbd1.12

comment:3 Changed 2 years ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.