fix pasting colors in color picker input

This commit is contained in:
Faustino Kialungila 2020-01-06 20:25:09 +01:00
parent f4940bfaef
commit dc93a8ccfd

View file

@ -45,6 +45,7 @@ export function ColorPicker({
type="text" type="text"
className="swatch-input" className="swatch-input"
value={color || ""} value={color || ""}
onPaste={e => onChange(e.clipboardData.getData("text"))}
onChange={e => onChange(e.target.value)} onChange={e => onChange(e.target.value)}
/> />
</div> </div>