ui-select-choices do not update changes in view (when model changes) #1434
Description
i'm using multiple iu-select and found out that ui-select-choices do not update the view when model is changed.
When element is deleted from binded array, it do not appear in the ui-select-choices list and it is unavailable to select it again.
To reproduce the issue I uploaded code to Plunker
https://plnkr.co/edit/E1yErzVefrPlKurUsHH9?p=preview
To reproduce the issue:
-
choose any element form the list. It will appear in the ui-select-match and also in list above.
-
click on "close" on the element in the list above. It will remove appropriate element from the binded array and also this element will disappear from ui-select-match.
Till now everything working excellent.
- but if now you try to select new element from the list,
you will see that the element that was deleted on step2 is absent in the ui-select-choices list.
If this is not a bug, please explain what I disunderstand.
Great thank you.
UPDATE:
here is Punker with last version
https://plnkr.co/edit/yitp361WJzbyuBsSIUoC?p=preview