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

ui-disable-choice modifies choice objects #656

Closed
dcopp opened this issue Feb 12, 2015 · 2 comments
Closed

ui-disable-choice modifies choice objects #656

dcopp opened this issue Feb 12, 2015 · 2 comments

Comments

@dcopp
Copy link

dcopp commented Feb 12, 2015

When using a list of objects, the property _uiSelectChoiceDisabled is added to each item.

Plunker: http://plnkr.co/edit/uijTx559uQyRtVuBscj5?p=preview

Click the select control to see the effect in the json dump below it.

Either this side-effect should be documented (if by design ui-select "owns" the list given) or ui-select should not pollute the list elements with its own data.

@dcopp dcopp closed this as completed Feb 13, 2015
@dcopp dcopp reopened this Feb 13, 2015
@pakdev
Copy link

pakdev commented Mar 17, 2015

This can be an issue when multiple selects want different items disabled from the same list. It appears that ui-select prevents an option from being selected if this property exists.

@dimirc dimirc added this to the 0.11.x milestone Mar 18, 2015
@wesleycho wesleycho removed this from the 0.11.x milestone Mar 27, 2016
@wesleycho
Copy link
Contributor

Going to close this as a duplicate of #1200, as that issue seems a little more detailed.

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

No branches or pull requests

4 participants