Opened 7 years ago

Closed 7 years ago

#14922 closed defect (worksforme)

TimeTextBox constraints are not correctly applied to dropDown

Reported by: Sébastien Le Ray Owned by: Douglas Hays
Priority: undecided Milestone: tbd
Component: Dijit - Form Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Parameters *Increment are not correctly handled.

This may be in relation with #4415 but it seems that the parameters are still ignored.

This is due to the fact that value is specified in constructor of TimePicker? which triggers call to _showText before constraints have been set, so default values are taken. Calling this.dropDown.set("value", this.get('value') || new this.dateClassObj()); right after instantiation fixes the issue.

It may be noted that tests on TimeTextBox? use default increment values as parameters so they cannot detect this bug.

Change History (1)

comment:1 Changed 7 years ago by Douglas Hays

Resolution: worksforme
Status: newclosed

dijit/tests/form/test_TimeTextBox.html has an example of this working correctly. Please append a testcase.

Note: See TracTickets for help on using tickets.