Skip to content

Commit e35dd37

Browse files
author
Marcin Gorecki
committed
Fix(1716): null.blur() on special occasions
1 parent 30667d0 commit e35dd37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/multiselectMixin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ export default {
688688
this.isOpen = false
689689
/* istanbul ignore else */
690690
if (this.searchable) {
691-
if (typeof this.$refs.search !== 'undefined') this.$refs.search.blur()
691+
if (this.$refs.search !== null && typeof this.$refs.search !== 'undefined') this.$refs.search.blur()
692692
} else {
693693
if (typeof this.$el !== 'undefined') this.$el.blur()
694694
}

0 commit comments

Comments
 (0)