We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bfed47 commit 2ec33a7Copy full SHA for 2ec33a7
lib/src/MultipleSelectInstance.ts
@@ -971,7 +971,7 @@ export class MultipleSelectInstance {
971
// when multiple values could be set, so we need to loop through each
972
const selectOptions = this.elm.options;
973
for (let i = 0, ln = selectOptions.length; i < ln; i++) {
974
- const isSelected = selectedValues.indexOf(selectOptions[i].value) >= 0;
+ const isSelected = selectedValues === selectOptions[i].value;
975
selectOptions[i].selected = isSelected;
976
}
977
0 commit comments