Skip to content

Commit

Permalink
Fix vanilla usage
Browse files Browse the repository at this point in the history
  • Loading branch information
clauderic committed Sep 12, 2024
1 parent 9479be0 commit 51be6df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fix-vanilla-droppable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dnd-kit/dom': patch
---

Fix `element` not being set when provided on initialization of `Droppable`
1 change: 1 addition & 0 deletions packages/dom/src/core/entities/droppable/droppable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class Droppable<T extends Data = Data> extends AbstractDroppable<
manager
);

this.element = element;
this.refreshShape = () => updateShape();
}

Expand Down

0 comments on commit 51be6df

Please sign in to comment.