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
I need to have 2 pieces of state. One updates in real time as you drag on the colour picker, and the other only updates when you release the drag (ie you've finished choosing).
This code works except when you drag the mouse out of the component. In that case color updates but colorFinal does not.
I need to have 2 pieces of state. One updates in real time as you drag on the colour picker, and the other only updates when you release the drag (ie you've finished choosing).
This code works except when you drag the mouse out of the component. In that case
color
updates butcolorFinal
does not.https://codesandbox.io/s/funny-wind-y65ivg?file=/src/App.js:0-555
Screen recording of the issue: https://www.loom.com/share/0d4ad40582d64ccf94d0454e74d6fbe9
Is there an event that could be used instead of or as well as
onMouseUp
?The text was updated successfully, but these errors were encountered: