-
-
Notifications
You must be signed in to change notification settings - Fork 834
Closed
Description
Description
In scenarios where multiple feedback plugins exist on the page, tearing down one instance may tear down other instances. This is problematic if the tear-down occurs during a drag, as the feedback styles are removed.
Environment
- dnd-kit version: 0.1.17
Steps to reproduce
- Create two instances of dnd-kit
- Add an
onDragStartcallback to the first instance - In the
onDragStartcallback, trigger a state change that causes the second instance to unmount and tear down
Sandbox: https://codesandbox.io/p/sandbox/dnd-kit-feedback-plugin-tear-down-g2nt3j
What happens
The dnd-kit <style> attribute used by the active Feedback plugin is removed mid-drag, causing the drag to render incorrectly.
Kapture.2025-05-15.at.18.43.21.mp4
What I expect to happen
Unmounting the second instance of dndkit to have no affect on the first instance.
Metadata
Metadata
Assignees
Labels
No labels