Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

Fixes pasting colors in color picker (#215)

Faustino Kialungila5ade8987e4b3
diff --git a/src/components/ColorPicker.tsx b/src/components/ColorPicker.tsx
index 65dfc78b59..a415db92ee 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)}
/>
</div>