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

TypeError: Cannot read property '_uiSelectChoiceLocked' of undefined #1269

Closed
lukaw3d opened this issue Oct 23, 2015 · 14 comments
Closed

TypeError: Cannot read property '_uiSelectChoiceLocked' of undefined #1269

lukaw3d opened this issue Oct 23, 2015 · 14 comments

Comments

@lukaw3d
Copy link
Contributor

lukaw3d commented Oct 23, 2015

If tagging is enabled, it is possible to select a null item. After that I am getting errors

How to reproduce:

  • Open demo-tagging.html
  • Click on input inside Object Tags
  • Press Up (this selects activeIndex -1)
  • Press Enter
  • A null item is added and can not be removed
  • Trying to remove it causes TypeError: Cannot read property '_uiSelectChoiceLocked' of undefined
@ravishivt
Copy link

+1

10 similar comments
@glenn-coessens
Copy link

+1

@asabirov
Copy link

asabirov commented Dec 4, 2015

+1

@roko-p
Copy link

roko-p commented Dec 17, 2015

+1

@mihot
Copy link

mihot commented Dec 17, 2015

+1

@maramara
Copy link

+1

@Tibex
Copy link

Tibex commented Dec 17, 2015

+1

@ilongin
Copy link

ilongin commented Dec 17, 2015

+1

@tonilastre
Copy link

+1

@aronmgv
Copy link

aronmgv commented Feb 16, 2016

+1

@luckylucky
Copy link

+1

@johnmarkli
Copy link

+1

This also happens when you input characters and press enter fast enough before the results are loaded. null is selected and the empty tag can't be removed because of the error TypeError: Cannot read property '_uiSelectChoiceLocked' of undefined

@logannc
Copy link

logannc commented Mar 23, 2016

+1 @johnmarkli I have experienced this numerous times. I had thought it was something more insidious than just typing too fast, but I could never replicate it! XD

@andertun
Copy link

+1

kavika-1 added a commit to hiconversion/ui-select that referenced this issue Jul 8, 2016
Prevent creating and adding undefined items to $select.selected.
Addresses angular-ui#1269.
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
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