Opened 8 years ago

Last modified 3 years ago

#12633 assigned defect

dojox.form.MonthTextBox ignores min/max constraint

Reported by: bornmw Owned by: dylan
Priority: high Milestone: 1.15
Component: DojoX Form Version: 1.6.0
Keywords: Cc: Douglas Hays
Blocked By: Blocking:

Description (last modified by bill)

dojox.form.MonthTextBox (as well as other dojox date pickers) ignores min/max constraint

Attachments (1)

12633.patch (1.6 KB) - added by Douglas Hays 7 years ago.
year constraints failing since disabled year labels were not populated, month constraints failing since this._year is not defined

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by bornmw

Sorry, just found out that YearTextBox? supports min/max But it is very buggy When I specify max value

<input id="endDateInputAnn" dojoType='dojox.form.YearTextBox' name="startDate" constraints="{datePattern:'MM/dd/yyyy', max:'2009-01'}">

it displays two years (2008 and 2009) on 2008 - 2019 page, when I move to 2020 - 2031 page it still displays two years (2008 and 2009), crossed out though.

comment:2 Changed 8 years ago by bill

Cc: Douglas Hays added
Component: GeneralDojoX Form
Owner: set to dante

We often see this complaint for dijit.form.DateTextBox and the answer is always to use the "constraints" variable rather than adjusting min/max directly. Not sure if that's the case here too or not.

comment:3 Changed 8 years ago by bill

Description: modified (diff)

comment:4 Changed 7 years ago by Douglas Hays

Type: enhancementdefect

YearTextBox?'s popup widget was not populating disabled years.

Changed 7 years ago by Douglas Hays

Attachment: 12633.patch added

year constraints failing since disabled year labels were not populated, month constraints failing since this._year is not defined

comment:5 Changed 4 years ago by dylan

Milestone: tbd1.12
Owner: changed from dante to dylan
Status: newassigned

comment:6 Changed 3 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.