From e35dd377a4cf41732a10c27ee0adf969af12d68e Mon Sep 17 00:00:00 2001 From: Marcin Gorecki Date: Mon, 28 Aug 2023 16:18:54 +0200 Subject: [PATCH] Fix(1716): null.blur() on special occasions --- src/multiselectMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multiselectMixin.js b/src/multiselectMixin.js index dd065b6a..b4d3ee49 100644 --- a/src/multiselectMixin.js +++ b/src/multiselectMixin.js @@ -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() }