From 850a1eb44893d7174a6cef57e689fb812f3a939f Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 8 Jul 2020 17:48:35 +0800 Subject: [PATCH] =?UTF-8?q?combo=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/combo.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/base/combination/combo.js b/src/base/combination/combo.js index 57e6786aa..4c7ac8830 100644 --- a/src/base/combination/combo.js +++ b/src/base/combination/combo.js @@ -301,12 +301,15 @@ }, _popupView: function (e) { + var self = this; this._assertPopupViewRender(); this.fireEvent(BI.Combo.EVENT_BEFORE_POPUPVIEW); this.popupView.visible(); - BI.each(needHideWhenAnotherComboOpen, function(i, combo){ - combo && combo.hideView(); + BI.each(needHideWhenAnotherComboOpen, function (i, combo) { + if (i !== self.getName()) { + combo && combo.hideView(); + } }); needHideWhenAnotherComboOpen = {}; this.options.hideWhenAnotherComboOpen && (needHideWhenAnotherComboOpen[this.getName()] = this);