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

Pointer doesn't work on Color wheel #31

Closed
manukaprabath95 opened this issue Sep 12, 2021 · 1 comment
Closed

Pointer doesn't work on Color wheel #31

manukaprabath95 opened this issue Sep 12, 2021 · 1 comment

Comments

@manukaprabath95
Copy link

manukaprabath95 commented Sep 12, 2021

I'm using @uiw/react-color-wheel latest version (1.0.2) on one of my React JS projects. I need to customize the pointer element. So basically pointer props (color, left, right) will be enough for my implementation. But the problem is the pointer doesn't fit within the wheel element and pointer props are always the same when changing.
Tried with the default Pointer as well. But the result remains the same.

Pointer preview

Screenshot-2021-09-12-at-12-39-45

Pointer props

color: ""
left: "0"
prefixCls: "w-color-wheel"
top: "0"

Source code

Screenshot-2021-09-12-at-13-59-18

@manukaprabath95
Copy link
Author

The problem is the misleading usage example mentioned on Github repo.

Screenshot-2021-09-12-at-15-30-59

There is no property called hsva for the Wheel component. Using color prop sorted out the issue.

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

1 participant