Skip to content

Commit 70af72e

Browse files
authored
Merge pull request #1717 from malarium/fix-1716-error-with-blur-on-null-object
Fix(1716): null.blur() on special occasions
2 parents 30667d0 + e35dd37 commit 70af72e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)