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.

Multi select drop down list isn't updated correctly when objects are pushed into selected list. #1031

Open
@trbarrett

Description

@trbarrett

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.

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