#7994 closed defect (fixed)
dijit.form.ValidationTextBox calls validator function twice onBlur
Reported by: | s_i_z_o | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.3 |
Component: | Dijit - Form | Version: | 1.2.0 |
Keywords: | ValidationTextBox validator onBlur | Cc: | |
Blocked By: | Blocking: |
Description
Some events on dijit.form.ValidationTextBox? fire more than one call to validator function.
- onBlur, validator function is called twice. It works either with TAB or click outside field.
- onFocus, when entering with Shift-TAB, it is called three times. Twice onFocus event and third time on release of Shift.
- Some keystrokes like Ctrl or Shift alone, produce call to validator while content of the field was not changed.
Maybe it would be better for the call to validator function only to be fired on actual value change?
Same defect also exists in 1.1.1
Attachments (2)
Change History (9)
Changed 11 years ago by
Attachment: | example.html added |
---|
comment:1 Changed 11 years ago by
Milestone: | 1.2.1 → tbd |
---|---|
Owner: | set to Douglas Hays |
comment:2 Changed 11 years ago by
Milestone: | tbd → 1.3 |
---|
Changed 11 years ago by
Attachment: | 7994.patch added |
---|
Fixes #7994. Eliminated redundant calls to the validator. Moved ValidationTextBox?-specific code out of TextBox?.
comment:3 Changed 11 years ago by
Status: | new → assigned |
---|
comment:4 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed 11 years ago by
comment:6 Changed 11 years ago by
comment:7 Changed 9 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
Test case to reproduce this error