Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select combo value on click of enter

How to select combo value on click of enter.

I am using combobox and values are coming by using mouse click and click on enter. But When I choose second value by click on enter 1st value is disappear. I a using keyboard and value appear in search. How to resolve this.

In my fiddler please select two value by click on enter, first value is disappear by clicking the second one.

Please help me to fix this. MyFiddler.

Note : I don't want to use tagfield.

like image 299
David Avatar asked Nov 09 '22 08:11

David


1 Answers

The Combobox control is deliberately built around having only one selection. It used to support multi-select, but that's been deprecated since Ext 5.1 and will presumably vanish or break in nasty ways.

The only built-in way to do what you want is with Tag Fields (which you've indicated you don't want), or the Ext.view.MultiSelector class. The latter isn't a single field, but a variant of a grid.

like image 127
Robert Watkins Avatar answered Nov 14 '22 21:11

Robert Watkins