From 5c22e21d79a89d622ed9145e438b70f951b16236 Mon Sep 17 00:00:00 2001 From: huangchen1031 Date: Fri, 27 Sep 2024 15:25:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BB=84=E4=BB=B6color-picker):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8DuseRef=E7=BC=93=E5=AD=98=E5=BC=95=E8=B5=B7?= =?UTF-8?q?=E7=9A=84color=E5=AE=9E=E4=BE=8B=E5=86=85=E9=83=A8=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E6=9C=AA=E6=9B=B4=E6=96=B0=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E5=9C=A8Form=E4=B8=ADreset=E5=BC=95=E8=B5=B7=E7=9A=84?= =?UTF-8?q?=E6=AD=BB=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/color-picker/ColorPicker.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/color-picker/ColorPicker.tsx b/src/color-picker/ColorPicker.tsx index e145039829..d415057d08 100644 --- a/src/color-picker/ColorPicker.tsx +++ b/src/color-picker/ColorPicker.tsx @@ -42,6 +42,7 @@ const ColorPicker: React.FC = (props) => { colorModes={colorModes} onChange={(value: string, context: TdColorContext) => setInnerValue(value, context)} ref={colorPanelRef} + key={innerValue} /> ) }