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();