Skip to content

Commit

Permalink
Merge pull request #1717 from malarium/fix-1716-error-with-blur-on-nu…
Browse files Browse the repository at this point in the history
…ll-object

Fix(1716): null.blur() on special occasions
  • Loading branch information
mattelen authored Oct 17, 2023
2 parents 30667d0 + e35dd37 commit 70af72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multiselectMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ export default {
this.isOpen = false
/* istanbul ignore else */
if (this.searchable) {
if (typeof this.$refs.search !== 'undefined') this.$refs.search.blur()
if (this.$refs.search !== null && typeof this.$refs.search !== 'undefined') this.$refs.search.blur()
} else {
if (typeof this.$el !== 'undefined') this.$el.blur()
}
Expand Down

0 comments on commit 70af72e

Please sign in to comment.