소스 검색

Fixes pasting colors in color picker (#215)

* improve lozenge dimensions

* fix pasting colors in color picker input
Faustino Kialungila 5 년 전
부모
커밋
5ade8987e4
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/components/ColorPicker.tsx

+ 1 - 0
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>