Browse Source

BI-100542 fix:日期过滤组件选中月份后月份面板不会自动收起

es6
Claire 3 years ago
parent
commit
7e83473c36
  1. 8
      src/widget/date/calendar/combo.month.date.js

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

Loading…
Cancel
Save