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

Cannot assign to read only property 'uiSelectChoiceLocked' of #514

Closed
jziggas opened this issue Dec 15, 2014 · 9 comments
Closed

Cannot assign to read only property 'uiSelectChoiceLocked' of #514

jziggas opened this issue Dec 15, 2014 · 9 comments

Comments

@jziggas
Copy link

jziggas commented Dec 15, 2014

Getting an error in the console when trying to use ui-lock-choice:

Cannot assign to read only property 'uiSelectChoiceLocked' of ADMIN at ctrl.isLocked (https://localhost:8443/.../bower_components/angular-ui-select/dist/select.js:479:39)

In my template I am using:

<ui-select-match ui-lock-choice="$item === 'ADMIN'">...</ui-select-match>

Has anyone else come across this? I'm using ~0.9.4 according to bower.json.

@jossemarGT
Copy link

Try with $parent.$item

@jziggas
Copy link
Author

jziggas commented Dec 16, 2014

Same result.

@piaggi
Copy link

piaggi commented Mar 27, 2015

I have the same problem.
It was identified only on Chrome browser and when items are string values.

@sboichon
Copy link

I'm having the same error. Anyone found a fix ?

@JonathanRamier
Copy link

try to upgrade to ver ~0.10.0

@jtrussell
Copy link

Any work being done on this - or would a PR be welcome? Seems to happen when items are strings rather than objects.

@Grant-Lay
Copy link

Any known workarounds for this?

@wesleycho
Copy link
Contributor

Can someone post a reproduction based on the latest release on Plunker?

user378230 added a commit to user378230/ui-select that referenced this issue Jul 9, 2016
Previously setting a selected item as locked modified that item, this
could cause issues if the item was used outside of the directive.

This commit changes the directive to store the information internally
thus preventing it from interfering with external uses.

Closes angular-ui#1269 and angular-ui#514
Supersedes (and closes) angular-ui#1641 and angular-ui#952
user378230 added a commit to user378230/ui-select that referenced this issue Jul 9, 2016
Previously setting a selected item as locked modified that item, this
could cause issues if the item was used outside of the directive.

This commit changes the directive to store the information internally
thus preventing it from interfering with external uses.

Closes angular-ui#1269 and angular-ui#514
Supersedes (and closes) angular-ui#1641 and angular-ui#952
user378230 added a commit to user378230/ui-select that referenced this issue Jul 9, 2016
Previously setting a selected item as locked modified that item, this
could cause issues if the item was used outside of the directive.

This commit changes the directive to store the information internally
thus preventing it from interfering with external uses.

Closes angular-ui#1269 and angular-ui#514
Supersedes (and closes) angular-ui#1641 and angular-ui#952
@user378230
Copy link
Contributor

Closed by c01d363 (#1712)

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

9 participants