Browse Source

REPORT-43239 fix: 调整赋值顺序,不然year picker计算范围会出错

es6
iapyang 4 years ago
parent
commit
87bda18714
  1. 2
      src/widget/dynamicdate/dynamicdate.combo.js

2
src/widget/dynamicdate/dynamicdate.combo.js

@ -190,9 +190,9 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
listeners: [{ listeners: [{
eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW, eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW,
action: function () { action: function () {
self.popup.setValue(self.storeValue);
self.popup.setMinDate(opts.minDate); self.popup.setMinDate(opts.minDate);
self.popup.setMaxDate(opts.maxDate); self.popup.setMaxDate(opts.maxDate);
self.popup.setValue(self.storeValue);
self.fireEvent(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW); self.fireEvent(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW);
} }
}] }]

Loading…
Cancel
Save