Skip to content

Commit 3858429

Browse files
committed
chore: rollback changes to update single locale via refreshOptions()
1 parent de4c0f2 commit 3858429

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/demo/src/examples/example09.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ export default class Example {
5050

5151
updateLocale(locale: LocaleKey) {
5252
this.ms1?.destroy();
53-
this.ms1 = multipleSelect('#dynamic-select', {
54-
filter: true,
55-
showOkButton: true,
56-
dataTest: 'select1',
57-
locale,
58-
locales,
59-
}) as MultipleSelectInstance;
53+
this.ms1?.refreshOptions({ locale });
6054
}
6155
}

0 commit comments

Comments
 (0)