mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Fixes pasting colors in color picker (#215)
* improve lozenge dimensions * fix pasting colors in color picker input
This commit is contained in:
parent
7bf0184499
commit
5ade8987e4
1 changed files with 1 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue