Browse Source

Pull request #2308: CHART-22056 fix:点击就传值,无需判断是否改变

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

* commit '5a2f8c9fb97ebabb9d1586eb572b9ea3e96fc9a0':
  CHART-22056 fix:点击就传值,无需判断是否改变
es6
Claire.Tang 3 years ago
parent
commit
ce3e9c1df8
  1. 6
      src/case/colorchooser/colorpicker/editor.colorpicker.hex.js

6
src/case/colorchooser/colorpicker/editor.colorpicker.hex.js

@ -72,9 +72,8 @@ BI.HexColorPickerEditor = BI.inherit(BI.Widget, {
listeners: [{
eventName: BI.ColorChooserShowButton.EVENT_CHANGE,
action: function () {
var value = self.getValue();
self.setValue("transparent");
(value !== "transparent") && self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
}],
ref: function (_ref) {
@ -90,9 +89,8 @@ BI.HexColorPickerEditor = BI.inherit(BI.Widget, {
listeners: [{
eventName: BI.ColorChooserShowButton.EVENT_CHANGE,
action: function () {
var value = self.getValue();
self.setValue("");
(value !== "") && self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
}],
ref: function (_ref) {

Loading…
Cancel
Save