Skip to content

Commit 137eb23

Browse files
committed
refactor(MultiSelect): modify single-select behavior
1 parent 96d68b5 commit 137eb23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/src/multi-select.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,12 @@ class MultiSelect extends BaseComponent {
544544
} else if (!this._config.multiple) {
545545
this._selectOption(value, text)
546546
}
547+
548+
if (!this._config.multiple) {
549+
this.hide()
550+
this.search('')
551+
this._searchElement.value = null
552+
}
547553
}
548554

549555
_selectOption(value, text) {

0 commit comments

Comments
 (0)