Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#8202 closed defect (fixed)

Enter in ComboBox changes value, but doesn't select item

Reported by: Mark Wubben Owned by: Douglas Hays
Priority: high Milestone: 1.3
Component: Dijit - Form Version: 1.2.1
Keywords: Cc:
Blocked By: Blocking:


I have a ComboBox? myComboBox hooked up to a custom Store. If I type a partial name, it is autocompleted. If I then hit Enter, with the focus still on the input box, I do get an onChange event, but myComboBox.item is null. Hitting enter does not actually select the item who's label is in the input field.

If, rather than hitting Enter from the input field, use Arrow Down to select the best match, and then hit Enter, the item *is* selected, and I can reference it via myComboBox.item.

I cannot find any notes on this, but I'd argue that an onChange event should have been preceeded by a select, such that the item can be referenced. Or, if onChange should just refer to the actual text in the input field, there should be an onSelect event.

This is with ComboBox? r15947.

Change History (6)

comment:1 Changed 13 years ago by Mark Wubben

In a similar manner, TABing from the input field does not select an item either.

comment:2 Changed 13 years ago by Adam Peller

Component: GeneralDijit
Owner: anonymous deleted

comment:3 Changed 13 years ago by Douglas Hays

Owner: set to haysmark

comment:4 Changed 13 years ago by Douglas Hays

Milestone: tbd1.3
Owner: changed from haysmark to Douglas Hays
Status: newassigned

comment:5 Changed 13 years ago by Douglas Hays

Resolution: fixed
Status: assignedclosed

(In [16438]) Fixes #8202. Set item when autoCompleting.

comment:6 Changed 11 years ago by bill

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