Login Register

TimeTextBox onChange firing twice

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. Is there a way to avoid the onChange happening twice or somehow cancel the second event?

modified test_TimeTextBox.html :

function testing() {
console.debug( 'changed ' + (new Date().getTime()) );    
}

Steps: 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

Thanks in advance!
Dan

please file a bug in trac

trac.dojotoolkit.org, user=guest, pw=guest

Ticket #5312 It's also for

Ticket #5312

It's also for DateTextBox

Thanks!

Dan Monroe

Unable to duplicate in

Unable to duplicate in 1.0.2.

Thanks again!

Dan Monroe