window-table icon indicating copy to clipboard operation
window-table copied to clipboard

Cannot set dragImage because Row always rerenders

Open vincaslt opened this issue 4 years ago • 0 comments

I set some dragging state on a component wrapping the table, so when I change it, the table re-renders and all rows are unmounted and then re-mounted.

The Row sets event.dataTransfer.setDragImage in onDragStart, but because it re-mounted, the event target changes and image is not shown. Also onDragEnd doesn't work because of the same reasons.

vincaslt avatar Jul 24 '20 10:07 vincaslt