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}