Browse Source

Pull request #172975: REPORT-80202 fix: combo.textvalue hideView时把参数传下去

Merge in DEC/fineui from ~AUSTIN.DUAN/new-decision-fineui:feature/x to feature/x

* commit 'afdb4412bd11122025647797f6a11fcb937e66d2':
  REPORT-80202 fix: combo.textvalue hideView时把参数传下去
master
Austin.Duan-段嗣跃 2 years ago
parent
commit
b83e1f6e59
  1. 2
      src/base/combination/combo.js
  2. 4
      src/case/combo/textvaluecombo/combo.textvalue.js

2
src/base/combination/combo.js

@ -152,7 +152,7 @@
o.hideWhenClickOutside && BI.Widget._renderEngine.createElement(document).unbind("mousedown." + this.getName()).unbind("mousewheel." + this.getName()); o.hideWhenClickOutside && BI.Widget._renderEngine.createElement(document).unbind("mousedown." + this.getName()).unbind("mousewheel." + this.getName());
BI.EVENT_BLUR && o.hideWhenBlur && BI.Widget._renderEngine.createElement(window).unbind("blur." + this.getName()); BI.EVENT_BLUR && o.hideWhenBlur && BI.Widget._renderEngine.createElement(window).unbind("blur." + this.getName());
this.fireEvent(BI.Combo.EVENT_AFTER_HIDEVIEW); this.fireEvent(BI.Combo.EVENT_AFTER_HIDEVIEW, e);
}, },
_popupView: function (e) { _popupView: function (e) {

4
src/case/combo/textvaluecombo/combo.textvalue.js

@ -87,7 +87,7 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
changeTag = true; changeTag = true;
this.setValue(this.popup.getValue()); this.setValue(this.popup.getValue());
if (o.chooseType === BI.ButtonGroup.CHOOSE_TYPE_SINGLE) { if (o.chooseType === BI.ButtonGroup.CHOOSE_TYPE_SINGLE) {
this.combo.hideView(); this.combo.hideView(...args);
this.fireEvent(BI.TextValueCombo.EVENT_CHANGE, ...args); this.fireEvent(BI.TextValueCombo.EVENT_CHANGE, ...args);
} }
} }
@ -110,7 +110,7 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
listeners: [ listeners: [
{ {
eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW, eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW,
action: (...args) => { action: () => {
changeTag = false; changeTag = false;
} }
}, { }, {

Loading…
Cancel
Save