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.

Item remains active inside dropdown after model clear #1987

@andrei-dracea

Description

@andrei-dracea

Bug description:

After setting the select model to null, the item remains as active in the dropdown. You can see this bug in the example plunkr below. Just select something from the list, then click Clear ng-model, then open the dropdown. I believe this is not expected behaviour. It also happens when you change the data source, the previously selected position in the dropdown remains active.

Link to minimally-working plunker that reproduces the issue:

http://plnkr.co/zxf7mvhFVbvKKspyB8kU

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

Angular: 1.6.4

UI-Select: 0.19.8

Bootstrap/Select2/Selectize CSS (if applicable): Bootstrap 3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions