Browse Source

Fixes pasting colors in color picker (#215)

* improve lozenge dimensions

* fix pasting colors in color picker input
pull/210/head
Faustino Kialungila 6 years ago committed by GitHub
parent
commit
5ade8987e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/components/ColorPicker.tsx

1
src/components/ColorPicker.tsx

@ -45,6 +45,7 @@ export function ColorPicker({ @@ -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)}
/>
</div>

Loading…
Cancel
Save