Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-lookup: removing item results in two calls to "removeOptionTile", causes error #49

Closed
pauljrooney opened this issue Jul 25, 2017 · 0 comments
Labels

Comments

@pauljrooney
Copy link

When removing an item from a multi-lookup list, the "removeOptionTile" function is called twice (once explicitly and another time through the value change event handler). The function succeeds the first time (removing the item from the list) but fails the second time with an error due to the fact that the item no longer exists at the index in the array:

Action failed: c:strike_multiLookup$controller$handleComponentDestroyed [undefined is not an object (evaluating 'm[m.length+a].rawIndex')]
Failing descriptor: {c:strike_multiLookup$controller$handleComponentDestroyed}

The error occurs on line 320 in strike_multiLookupHelper.js:

currentOptionTiles.splice(destroyedIndex, 1);

On the second invocation of this method, destroyedIndex is undefined, which causes the error.

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

No branches or pull requests

3 participants