#5312 closed defect (worksforme)
DateTextBox and TimeTextBox onChange firing twice
Reported by: | guest | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.0.1 |
Component: | Dijit - Form | Version: | 1.0 |
Keywords: | TimeTextBox DateTextBox onchange | Cc: | [email protected]… |
Blocked By: | Blocking: |
Description
version 1.0.0 from AOL cdn
build 11363
Dan Monroe [email protected]…
I've set an onChange function to a TimeTextBox? that is firing twice; once when the value is selected from the drop down and again when the focus is moved off the widget.
modified test_TimeTextBox.html :
<div class="testExample"> <input id="q16b" type="text" name="time1b" class="medium" value="T17:45:00" dojoType="dijit.form.TimeTextBox" constraints="{timePattern:'h:mm:ss a'}" required="true" onChange="testing();" invalidMessage="Invalid time." /> </div>
function testing() { console.debug( 'changed ' + (new Date().getTime()) ); }
Steps to duplicate:
- Pick new time from drop down. Value changes, Drop Down collapses. Focus is still in the text box.
- Click off the text box with the mouse (or tab) and the onChange fires again (even though the value wasn't changed)
Console:
changed 1196812077968
changed 1196812080052
Change History (5)
comment:1 Changed 13 years ago by
Milestone: | → 1.1 |
---|---|
Owner: | set to Douglas Hays |
comment:2 Changed 13 years ago by
Milestone: | 1.1 → 1.0.1 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 Changed 13 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:4 Changed 13 years ago by
Cc: | [email protected]… added |
---|---|
Resolution: | → worksforme |
Status: | reopened → closed |
comment:5 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
I tried with the 1.0.1 and 1.1 trees and it seems to be only firing once so we'll call it fixed.