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

Removing active class when selected value was removed #2164

Open
izabellaszlosarczyk opened this issue Oct 1, 2018 · 0 comments
Open

Removing active class when selected value was removed #2164

izabellaszlosarczyk opened this issue Oct 1, 2018 · 0 comments

Comments

@izabellaszlosarczyk
Copy link

Bug description:

Following scenario:

  1. Select one option from ui-select
  2. Click button (remove value)
  3. Toggle select
    You can see that previously selected option has still "active" class - when other stuff (like placeholder) were reset to state before selecting.
    When $select.selected is empty (undefined,empty string,null) active class should be removed from choice too (I am setting $select.activeIndex = -1).

Link to minimally-working plunker that reproduces the issue:

https://codepen.io/anon/pen/YJXYKL

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

Angular:
1.6.5
UI-Select:
latest
Bootstrap/Select2/Selectize CSS (if applicable):
3.1.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant