From b9e1da8d4800ec39025adbccd8a18bcea196a18a Mon Sep 17 00:00:00 2001 From: Vero Date: Thu, 28 Nov 2024 14:53:37 +0100 Subject: [PATCH] Fixed transparent diagonal bug --- .../color-picker/color-picker.component.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pods/properties/components/color-picker/color-picker.component.tsx b/src/pods/properties/components/color-picker/color-picker.component.tsx index e1176082..92af5d54 100644 --- a/src/pods/properties/components/color-picker/color-picker.component.tsx +++ b/src/pods/properties/components/color-picker/color-picker.component.tsx @@ -26,23 +26,23 @@ export const ColorPicker: React.FC = props => { setHsva(hexToHsva(color)); }; + const handleChange = (color: ColorProps) => { + setHsva(color.hsva); + onChange(color.hexa); + }; + const handlePresetColors = (newColor: string) => { const hsvaColor = hexToHsva(newColor); setHsva(hsvaColor); onChange(newColor); }; - const handleChange = (color: ColorProps) => { - setHsva(color.hsva); - onChange(color.hexa); - }; - return ( <>

{label}