kveeiv / extjs-boxselect

Ext.ux.form.field.BoxSelect
http://kveeiv.github.com/extjs-boxselect/examples/boxselect.html
MIT License
108 stars 53 forks source link

After selecting items from dropdown list TAB key removes last selected item #21

Open armandoxxx opened 11 years ago

armandoxxx commented 11 years ago

Hello

One thing I noticed:

After selecting multiple items from dropdown list with ENTER key and then pressing TAB key (while dropdown is still open) will remove last selected item from the field and jump to next form field. Last selected item should not be removed.

possible fix in line 611 - 613:


valueStore.each(function(rec) {
                //if (Ext.Array.contains(selectedRecords, rec) || me.isFilteredRecord(rec)) {
                    mergedRecords.push(rec);
                //}
            });
sagivf commented 11 years ago

This works but disables the option to dselect items directly from the combobox, Another possible solution is to add "selectOnTab: false" to the combobox's properties, you should use this option if you are satisfied with selection on enter.