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.
Multi select drop down list isn't updated correctly when objects are pushed into selected list. #1031
Open
Description
I discovered this when we update the selected and selectable lists by pushing into it after a web request.
Here's an example of the problem based of the multi-select demo:
http://plnkr.co/edit/Zcx9XjY3GWG7ShQ493EZ?p=preview
Steps To Reproduce:
- Setup bindings to two arrays of objects: selectable, and selected.
- Create empty selectable and selected arrays during controller initialization. (e.g $scope.selectable = [])
- Later on in a callback ($timeout, or web request) push items into the selectable and selected list.
- Issue: The drop down list contains items which show up as having been selected.
Note: if you select or remove an item from the list via the UI the issue will resolve itself.