Skip to content

Commit 2a33295

Browse files
committed
fix run
1 parent a2b5c0b commit 2a33295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/multiple-select-vanilla/src/MultipleSelectInstance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export class MultipleSelectInstance {
337337
}
338338

339339
if (!this.fromHtml) {
340-
// this.initHtmlRows();
340+
this.initHtmlRows();
341341
}
342342

343343
this.dataTotal = setDataKeys(this.data || []);
@@ -1565,7 +1565,7 @@ export class MultipleSelectInstance {
15651565
} else {
15661566
// when multiple values could be set, we need to loop through each
15671567
Array.from(this.elm.options).forEach(option => {
1568-
option.selected = selectedValues.some(val => val() === option.value);
1568+
option.selected = selectedValues.some(val => val.toString() === option.value);
15691569
});
15701570
}
15711571

0 commit comments

Comments
 (0)