From 7e83473c368aa2a519763ed321d8fb9a477b087b Mon Sep 17 00:00:00 2001 From: Claire <1119518763@qq.com> Date: Thu, 20 Jan 2022 15:36:10 +0800 Subject: [PATCH] =?UTF-8?q?BI-100542=20fix:=E6=97=A5=E6=9C=9F=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E7=BB=84=E4=BB=B6=E9=80=89=E4=B8=AD=E6=9C=88=E4=BB=BD?= =?UTF-8?q?=E5=90=8E=E6=9C=88=E4=BB=BD=E9=9D=A2=E6=9D=BF=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=94=B6=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/date/calendar/combo.month.date.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/widget/date/calendar/combo.month.date.js b/src/widget/date/calendar/combo.month.date.js index 49139cb26..cb5e6f20f 100644 --- a/src/widget/date/calendar/combo.month.date.js +++ b/src/widget/date/calendar/combo.month.date.js @@ -27,8 +27,10 @@ BI.MonthDateCombo = BI.inherit(BI.Trigger, { behaviors: o.behaviors }); - this.popup.on(BI.YearPopup.EVENT_CHANGE, function () { + this.popup.on(BI.MonthPopup.EVENT_CHANGE, function () { self.setValue(self.popup.getValue()); + self.combo.hideView(); + self.fireEvent(BI.MonthDateCombo.EVENT_CHANGE); }); @@ -50,10 +52,6 @@ BI.MonthDateCombo = BI.inherit(BI.Trigger, { } } }); - this.combo.on(BI.Combo.EVENT_CHANGE, function () { - self.combo.hideView(); - self.fireEvent(BI.MonthDateCombo.EVENT_CHANGE); - }); this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { self.doBehavior();