ArcBees / gwtchosen

Port of the chosen javascript plugin for Google Web Toolkit
Other
107 stars 50 forks source link

Chosen not Filtering Correctly and Error When Using Down Arrow Key to Select Results #308

Open tracerTres opened 6 years ago

tracerTres commented 6 years ago
ChosenListBox listBox = new ChosenListBox(true);
listBox.addItem("A", "A");
listBox.addItem("AA", "AA");
listBox.addItem("B", "B");
listBox.addItem("BB", "BB");

Using the code above, in the search field type 'B' (Sometimes the results are not filtered correctly and results starting with 'A' are shown) then use down arrow to select "BB". Type 'B' again and use down arrow to select 'B' and an error occurs before selection is done. On inspection the issue seems to occur due to the class active-result been added twice when building results in DesktopMultipleChosenImpl

gwtchosen 3.0.1 gwt 2.8.2 java 8 gwtquery 1.5-beta1