Skip to content

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

@tracerTres

Description

@tracerTres
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions