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

Dnd issue: Position is reseted when using a detachable component

Open AXeL-dev opened this issue 4 years ago • 1 comments

Hello there,

First of all, i really like this library so i wanted to thank the team for their great work, especially @clauderic .

Issue description

I've been recently trying to create a detachable toolbar (you can find a working example here), but i'm facing some issues when the toolbar becomes detached, once i hit the drag handle the toolbar position is reseted (check the screenshot below).

Peek 20-01-2022 16-47

I've tried to use a custom collision detection strategy but it doesn't seem to work either.

AXeL-dev avatar Jan 20 '22 16:01 AXeL-dev

I've managed to fix my issue, here is the fixed version if anyone is looking for it, still i'm not sure if this is the best way to handle a such case, but at least it's working as expected.

I'll keep this issue open until you give me your feedback @clauderic.

Thanks.

AXeL-dev avatar Jan 28 '22 12:01 AXeL-dev

Same issue here, when i click the element resets the position to 0 ,0.

DylanAlberto avatar Mar 10 '23 03:03 DylanAlberto