Browse Source

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

Merge in VISUAL/fineui from ~CLAIRE.TANG/fineui:master to master

* commit '3913d2d9bb804e4c4b94b10da5b9890e5522f485':
  BI-100542 fix:日期过滤组件选中月份后月份面板不会自动收起
es6
Claire.Tang 3 years ago
parent
commit
a6fc1906ae
  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 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.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 () { this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
self.doBehavior(); self.doBehavior();

Loading…
Cancel
Save