dnd-kit icon indicating copy to clipboard operation
dnd-kit copied to clipboard

[experimental] preventing parent drag when interacting with a child dialog

Open FredrikMWold opened this issue 4 months ago • 0 comments

Hi, I’m running into an issue where opening a dialog inside a draggable element causes the parent draggable to move whenever I try to interact with the dialog.

I found this related issue for the old version of dnd-kit, but I can’t find anything similar for the experimental version.

I’ve looked into the docs on creating a custom sensor, but I have not been able to figure out have based on the docs

I’ve also tried calling e.stopPropagation() on almost every relevant handler and element, but that didn’t resolve the problem.

Has anyone run into this before or have tips on how to achieve this?

FredrikMWold avatar Sep 04 '25 09:09 FredrikMWold