Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set dragImage because Row always rerenders #61

Open
vincaslt opened this issue Jul 24, 2020 · 0 comments
Open

Cannot set dragImage because Row always rerenders #61

vincaslt opened this issue Jul 24, 2020 · 0 comments

Comments

@vincaslt
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant