Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Search fails to register keypresses with combo box closed #1934

@softdevca

Description

@softdevca

If the user tabs into a closed ui-select combo box and types quickly the keypresses may not register. The behavior gets worse the longer the list, though it doesn't take many items for the behavior to become consistent.

For example, the attached plunkr is the Basic example from the ui-select home page with $scope.people modified to be significantly longer. To replicate the issue place the cursor in the "Enter an address" field, press Tab then type "adr" quickly and notice the d and r often do not register.

It appears under the hood ui-select is reverting the search string. Debugging in the propsFilter shows it will search for "a" then "ad" then "adr" then "a" again.

Link to minimally-working plunker that reproduces the issue:

http://plnkr.co/edit/VBPQvQdsQ7bNUymNHLwp?p=preview

Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS

Directly from the Basic demo plunkr

Angular: 1.5.0

UI-Select: 0.19.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions