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

setChoiceByValue does not remove choice from dropdown #463

Closed
ezerr opened this issue Nov 13, 2018 · 3 comments
Closed

setChoiceByValue does not remove choice from dropdown #463

ezerr opened this issue Nov 13, 2018 · 3 comments

Comments

@ezerr
Copy link

ezerr commented Nov 13, 2018

I am creating my choices on a multi select dynamically with setChoices and duplicateItemsAllowed set to false, then immediately selecting the items I want using setChoiceByValue. This works fine, but the choice is not removed from the dropdown. The behavior should be just like if the user selected the choice, the item is selected, and the choice is removed from the choices dropdown.

@jshjohnson
Copy link
Collaborator

@ezerr Hey - could you provide a jsfiddle reproducing the problem please?

@ezerr
Copy link
Author

ezerr commented Nov 24, 2018

@jshjohnson Sure thing. In the below link, as soon as you load it, it will have a selected item that was set by setChoiceByValue. But when you click on the select, you can still see that selected item in choices, it was not removed.

https://jsfiddle.net/mhkbs0zt/3/

@jshjohnson
Copy link
Collaborator

@ezerr Thanks - it was a regression issue. It's been fixed in 4.1.3 now :)

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