window-table
window-table copied to clipboard
Cannot set dragImage because Row always rerenders
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.