You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So if you use the slider to set the value, the rgb.a and hsv.a will be set to 0, but when you open a pop up again with the same value, both will be undefined
so const [color, setColor] = useColor('hex', value) where value = '#12345600' will not make the .a props 0, instead they will be 'undefined', but a hex of '#12345601' will set them to ~0.004
My Environment
MacOS 11.6 (2017 15-inch)
2.8ghz Quad-Core Intel Code i7
Radeon Pro 555 2GB / Intel HD 630 1536 MB
Expected Behavior:
The slider should be at the zero position for an 8 character hex, i.e. #12345600
Actual Behavior:
Slider resets to full position when alpha channel set to 0 via hex
Additional Context:
Appears to be an issue with the HSV as a perfect 0 returns 'undefined' in the hsv.a position
The text was updated successfully, but these errors were encountered: