From 5a2f8c9fb97ebabb9d1586eb572b9ea3e96fc9a0 Mon Sep 17 00:00:00 2001 From: Tangjinxia <1119518763@qq.com> Date: Thu, 25 Nov 2021 19:23:06 +0800 Subject: [PATCH] =?UTF-8?q?CHART-22056=20fix:=E7=82=B9=E5=87=BB=E5=B0=B1?= =?UTF-8?q?=E4=BC=A0=E5=80=BC=EF=BC=8C=E6=97=A0=E9=9C=80=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/colorchooser/colorpicker/editor.colorpicker.hex.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/case/colorchooser/colorpicker/editor.colorpicker.hex.js b/src/case/colorchooser/colorpicker/editor.colorpicker.hex.js index 83b7b9462..0326c9130 100644 --- a/src/case/colorchooser/colorpicker/editor.colorpicker.hex.js +++ b/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) {