Open chrysb opened 4 years ago
Update: I managed to get it to render only on the client-side, but I'm still experiencing the same issue where dragging does not update the UI.
React version 16.13.1
@chrysb In latest React this is could be related to issue #754 quick fix is save the changed colour in your local state and provide that as input through colour
props
Same issue with we drag or click doesn't work, #754 quick fix is also not working.
@TejaReddy7 Then it could be a different issue, but here is the codesanbox where you can see if you will remove the color
props drag will stop working
@hkurra drag is working, but sketchpicker is not moving, it remains unchanged does not reflect color change.
Try using onChangeComplete instead of onChange @chrysb
@TejaReddy7 Then it could be a different issue, but here is the codesanbox where you can see if you will remove the
color
props drag will stop working
My color
property is set to a state variable, which is being updated correctly using onChange
. The variable is updating, however, it is not visibly changing the color picker's selection.
While it's working correctly, I'd love to know if there's a workaround to live-updating the color picker, as it seems to be frozen in time.
Same Node: 14.0.0 NPM: 6.14.8
@chrysb , hello! Did you manage to solve the problem with NextJS?
You can solve this by loading the ChromePicker on the client using Next.js dynamic imports. https://nextjs.org/docs/advanced-features/dynamic-import
Is there other solution for react + vite?
@chrysb , hello! Did you manage to solve the problem with NextJS?
I haven't worked on this project since, sorry!
Hi there — first off, thanks for making this!
I implemented this and I'm seeing the following error in console:
We are using NextJS so I'm wondering if the issue comes from that.
Dragging still works in that it returns the proper value in
onChange
, but it does not update the UI so it looks like it's stuck.