small fix: color block handles transparent values
This commit is contained in:
@@ -131,7 +131,7 @@ export default function ColorPicker(props: ColorPickerProps) {
|
||||
)}
|
||||
{colorMode === "palette" && (
|
||||
<Block
|
||||
color={selectedColor}
|
||||
color={selectedColor !== "transparent" ? selectedColor : transparentColorHSVA}
|
||||
colors={colorPalette}
|
||||
onChange={(color) => {
|
||||
onUpdateColor(color.hex);
|
||||
|
||||
Reference in New Issue
Block a user