Open byTimo opened 2 years ago
+1 on hex8 support.
Apparently this block is to blame: https://github.com/casesandberg/react-color/blob/master/src/helpers/color.js#L51
+1
+1
i find a way fix this, use patch-package to fix。
Apparently this block is to blame: https://github.com/casesandberg/react-color/blob/master/src/helpers/color.js#L51
i find other way to fix this issues
<div
onInput={(event) => {
const target = event?.target as HTMLInputElement;
const value = target?.value;
console.log(value)
}}
>
<SketchPicker
presetColors={[]}
onChange={(value) => {
/>
</div>
The ColorPicker parses 8-digits hex correclty, but
onChange
is always received the hex value in 6-digit format. How can I use the value in hex with opactiy?