Skip to content

Commit

Permalink
fix: add missing input.manager dep to manager effect
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Dec 3, 2024
1 parent 2d207c3 commit 984b5ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/add-missing-manager-dep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dnd-kit/abstract': patch
---

Reconfigure the manager when the input changes.
2 changes: 1 addition & 1 deletion packages/react/src/core/context/DragDropProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function DragDropProvider({
startTransition(() => setManager(manager));

return manager.destroy;
}, [renderer]);
}, [renderer, input.manager]);

useOnValueChange(
plugins,
Expand Down

0 comments on commit 984b5ab

Please sign in to comment.