Browse Source

Merge pull request #714 in VISUAL/fineui from ~FAY/fineui:master to master

* commit '5b901d9a2a22de68623e44abeb25bbb19168113c':
  update
  Revert "update"
  Revert "update"
  Revert "update"
  Revert "Revert "update""
  Revert "update"
  Revert "Revert "update""
  Revert "update"
  update
  Revert "update"
  update
  update
  update
es6
fay 6 years ago
parent
commit
8854f4598b
  1. 11
      src/case/combo/textvaluedownlistcombo/combo.textvaluedownlist.js

11
src/case/combo/textvaluedownlistcombo/combo.textvaluedownlist.js

@ -44,13 +44,19 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, {
}); });
this.combo.on(BI.DownListCombo.EVENT_CHANGE, function () { this.combo.on(BI.DownListCombo.EVENT_CHANGE, function () {
self.setValue(self.combo.getValue()[0].value); var currentVal = self.combo.getValue()[0].value;
if (currentVal !== self.value) {
self.setValue(currentVal);
self.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE); self.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE);
}
}); });
this.combo.on(BI.DownListCombo.EVENT_SON_VALUE_CHANGE, function () { this.combo.on(BI.DownListCombo.EVENT_SON_VALUE_CHANGE, function () {
self.setValue(self.combo.getValue()[0].childValue); var currentVal = self.combo.getValue()[0].childValue;
if (currentVal !== self.value) {
self.setValue(currentVal);
self.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE); self.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE);
}
}); });
}, },
@ -69,6 +75,7 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, {
}, },
_digest: function (v) { _digest: function (v) {
this.value = v;
return this.valueMap[v]; return this.valueMap[v];
}, },

Loading…
Cancel
Save