From 85853e29481872c130e173733c715587313d6319 Mon Sep 17 00:00:00 2001 From: iapyang Date: Mon, 11 Oct 2021 17:13:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbi-focus-shadow?= =?UTF-8?q?=E5=9C=A8=E4=B8=8B=E6=8B=89=E6=A1=86=E6=94=B6=E8=B5=B7=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E4=BC=9Ablur=E5=AF=BC=E8=87=B4focus-within=E4=BC=AA?= =?UTF-8?q?=E7=B1=BB=E4=B8=80=E7=9B=B4=E5=AD=98=E5=9C=A8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/combo.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/base/combination/combo.js b/src/base/combination/combo.js index fcb2690f3..7ca9267d8 100644 --- a/src/base/combination/combo.js +++ b/src/base/combination/combo.js @@ -296,14 +296,16 @@ 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); + // 应对bi-focus-shadow在收起时不失焦 + this.element.blur(); + } + this.element.removeClass(this.options.comboClass); delete needHideWhenAnotherComboOpen[this.getName()];