react-selectable-fast icon indicating copy to clipboard operation
react-selectable-fast copied to clipboard

Setting selected values to my own state clears current selected values

Open alvamanu opened this issue 2 years ago • 0 comments

Trying to set my own state with the selected values inisde the handleSelectionFinish will update my state but it will also clear the current selection.

setValues({ ...values, day_parting_values: payload });

As soon as I do a mouse up, my own state will be modified but I won't be able to see what I have selected.

alvamanu avatar Jul 21 '21 00:07 alvamanu