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

Nested DndContext not working #74

Closed
pachu4u opened this issue Jan 27, 2021 · 3 comments
Closed

Nested DndContext not working #74

pachu4u opened this issue Jan 27, 2021 · 3 comments

Comments

@pachu4u
Copy link

pachu4u commented Jan 27, 2021

Hi,

I am using dndcontext and draggable component (say background component) to show panning effect, The nodes that sit on this background component have their own dnd context. The nodes are draggable by the handle. But the panning is triggered when I drag the body of the node. Due to which I am unable to resize the node.

Here is the sandbox link. https://codesandbox.io/s/crazy-antonelli-ubzm1
If you could take a quick look and advise if I am doing anything wrong or is it a bug.

@clauderic
Copy link
Owner

I believe this is a duplicate of #74

@pachu4u
Copy link
Author

pachu4u commented Feb 3, 2021

@clauderic - It is not a duplicate. The dragging event on the nested dnd context is triggering the dragging event on the outer dnd context.

@clauderic
Copy link
Owner

Please re-open with a reproduction case with the minimum amount of code required to replicate, but in my experience this is working fine. https://codesandbox.io/s/fervent-wing-0zqhd?file=/src/App.js

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

2 participants