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.

ui-select-choices do not update changes in view (when model changes) #1434

Open
@dicbrus

Description

@dicbrus

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:

  1. choose any element form the list. It will appear in the ui-select-match and also in list above.

  2. 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.

  1. 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

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