From c1e14c77508a6e02fedced993c0ee1a1657fc0ca Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 23 Mar 2022 16:21:49 +0800 Subject: [PATCH] =?UTF-8?q?BI-102974=20fix:=20=E7=9B=B4=E6=8E=A5=E5=8E=BB?= =?UTF-8?q?=E8=89=B2=E8=BD=AE=E7=82=B9=E9=80=89=E5=80=BC=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/colorchooser/farbtastic/farbtastic.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/case/colorchooser/farbtastic/farbtastic.js b/src/case/colorchooser/farbtastic/farbtastic.js index a5ec6736b..0bf1061b0 100644 --- a/src/case/colorchooser/farbtastic/farbtastic.js +++ b/src/case/colorchooser/farbtastic/farbtastic.js @@ -16,6 +16,7 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, { render: function () { var self = this; + this._defaultState(); return { type: "bi.absolute", items: [{ @@ -87,6 +88,10 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, { } }, + _defaultState: function () { + this.hsl = [0, 0, 0]; + }, + _unpack: function (color) { if (color.length === 7) { return [parseInt("0x" + color.substring(1, 3)) / 255,