Skip to content

Commit a38d69b

Browse files
author
Damian Dulisz
authored
Merge pull request shentao#234 from innominata/2.0
Close on tag when using single selection
2 parents b2f75d7 + b9108e6 commit a38d69b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/multiselectMixin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ export default {
430430
if (option.isTag) {
431431
this.$emit('tag', option.label, this.id)
432432
this.search = ''
433+
if (this.closeOnSelect && !this.multiple) this.deactivate()
433434
} else {
434435
const isSelected = this.isSelected(option)
435436
if (isSelected) {

0 commit comments

Comments
 (0)