From e1e95ed2332181c40c4d3b0662300e5436527173 Mon Sep 17 00:00:00 2001 From: iapyang Date: Wed, 29 Sep 2021 10:34:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=94=BE=E5=88=B0if=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/combo.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/combination/combo.js b/src/base/combination/combo.js index 76a3801ec..fcb2690f3 100644 --- a/src/base/combination/combo.js +++ b/src/base/combination/combo.js @@ -296,14 +296,14 @@ this.popupView && this.popupView.destroy(); this.popupView = null; this._rendered = false; + + if (!e || !this.combo.element.__isMouseInBounds__(e)) { + this.element.removeClass(this.options.hoverClass); + } } else { this.popupView && this.popupView.invisible(); } - if (!e || !this.combo.element.__isMouseInBounds__(e)) { - this.element.removeClass(this.options.hoverClass); - } - this.element.removeClass(this.options.comboClass); delete needHideWhenAnotherComboOpen[this.getName()];