Im trying to implement react-color from https://casesandberg.github.io/react-color/#examples I'm using the ChromePicker component, but the Alpha slider is not working, as expected. The slider bar is working, but the slider bullet is not moving on.
Here is the https://codesandbox.io/s/react-color-nkh7w example. Is there any component missing?
The problem is that react-color
components (like the ChromePicker
you are using) do not accept properties for alpha/opacity directly. You have two options:
color.rgb
value only, and don't separate the alpha. If you pass the rgb object as the color
property), it should work as expected.color.hex
string.