Set selected toggles rather than adds on dropdown that has useLabels: false setting #670
Labels
lang/javascript
Anything involving JavaScript
type/bug
Any issue which is a bug or PR which fixes a bug
Milestone
Bug Report
Set selected
toggles rather than adds values on multiple value dropdown that hasuseLabels: false
setting.Steps to reproduce
Initialise it with
$(".ui.dropdown").dropdown({useLabels: false});
Use set selected on the same values multiple times:
$(".dropdown").dropdown("set selected", ["foo", "bar"])
Expected result
The values will be added and remain regardless of how many times
$(".dropdown").dropdown("set selected", ["foo", "bar"])
is run.Actual result
The values toggle. If you remove
useLabels: false
it works as expected.Testcase
https://jsfiddle.net/a5j7u231/
Version
2.7.4
The text was updated successfully, but these errors were encountered: