From 5ade8987e4b38ecebe70f4a4400432644e3347ee Mon Sep 17 00:00:00 2001 From: Faustino Kialungila Date: Mon, 6 Jan 2020 20:28:14 +0100 Subject: [PATCH] Fixes pasting colors in color picker (#215) * improve lozenge dimensions * fix pasting colors in color picker input --- src/components/ColorPicker.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ColorPicker.tsx b/src/components/ColorPicker.tsx index 65dfc78b..a415db92 100644 --- a/src/components/ColorPicker.tsx +++ b/src/components/ColorPicker.tsx @@ -45,6 +45,7 @@ export function ColorPicker({ type="text" className="swatch-input" value={color || ""} + onPaste={e => onChange(e.clipboardData.getData("text"))} onChange={e => onChange(e.target.value)} />