Skip to content

Error #6

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

Open
Alexandra281989 opened this issue Aug 26, 2018 · 2 comments
Open

Error #6

Alexandra281989 opened this issue Aug 26, 2018 · 2 comments

Comments

@Alexandra281989
Copy link

I have below error. Can you please help?
Uncaught Action failed: c:MultiSelect$controller$init [Cannot read property 'sort' of undefined]
Callback failed: aura://ComponentController/ACTION$getComponent

@rapsacnz
Copy link
Owner

I'm guessing you are passing in an empty list. Fix is to check this before trying to sort it.

@Alexandra281989
Copy link
Author

I managed to solve it. Thanks!
The issue is that I can't select more than one item, even though I added the code
<c:MultiSelect aura:id="my-multi-select" options="{!v.options}" label="Status" selectChange="{!c.handleSelectChangeEvent}" selectedItems="{!v.mySelectedItems}" />
Where could be the issue? Thank you for the help!!!
image

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

No branches or pull requests

2 participants