Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hex8 #875

Open
byTimo opened this issue Nov 17, 2022 · 5 comments
Open

Hex8 #875

byTimo opened this issue Nov 17, 2022 · 5 comments

Comments

@byTimo
Copy link

byTimo commented Nov 17, 2022

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?

@avoskresensky
Copy link

+1 on hex8 support.

Apparently this block is to blame:
https://github.com/casesandberg/react-color/blob/master/src/helpers/color.js#L51

@MelanieW97
Copy link

+1

1 similar comment
@messi0087
Copy link

+1

@messi0087
Copy link

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

@messi0087
Copy link

messi0087 commented Oct 11, 2024

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants