Skip to content

Commit

Permalink
Skip disabled droppable containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Clauderic Demers committed Jan 3, 2021
1 parent 12bdda4 commit 78a7b67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sortable-keyboard-cordinates.md
@@ -0,0 +1,5 @@
---
'@dnd-kit/sortable': patch
---

Fix an issue with the sortable keyboard coordinate getter not excluted disabled droppables.
Expand Up @@ -28,6 +28,10 @@ export const sortableKeyboardCoordinates: KeyboardCoordinateGetter = (
const layoutRects: RectEntry[] = [];

Object.entries(droppableContainers).forEach(([id, container]) => {
if (container?.disabled) {
return;
}

const node = container?.node.current;

if (!node) {
Expand Down

0 comments on commit 78a7b67

Please sign in to comment.