Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#4490 closed defect (invalid)

refactor ComboBox hasFocus flag and ValidationTextBox validated(isFocused)

Reported by: bill Owned by: bill
Priority: high Milestone: 1.0
Component: Dijit - Form Version: 0.9
Keywords: Cc:
Blocked By: Blocking:


ValidationTextBox?.isValid() and similar functions take an isFocused flag, which is strange since the validity of the value is unrelated to whether or not the widget is focused. It's only really displayMessage() that needs to know if the widget is focused or not. Refactor for this.

Change History (2)

comment:1 Changed 14 years ago by bill

Resolution: invalid
Status: newclosed

OK, changed my mind about this one, at least for now. Maybe that flag is useful because while editing an incomplete value shouldn't be considered an error (only when you tab away is an incomplete value an error)

comment:2 Changed 11 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.