Skip to content

fix(dom): stop sortable items of different sizes from swapping back - #2194

Open
AdzerKI wants to merge 1 commit into
clauderic:mainfrom
AdzerKI:fix/sortable-variable-size-swap
Open

AdzerKI wants to merge 1 commit into
clauderic:mainfrom
AdzerKI:fix/sortable-variable-size-swap

Conversation

@AdzerKI

@AdzerKI AdzerKI commented Nov 16, 2026

Copy link
Copy Markdown

Fixes #2193

Sortables now default to a collision detector that skips the part of a same-group sibling the source can't cover after moving past it. Items of equal size, items in other groups and a custom collisionDetector behave as before.

@changeset-bot

changeset-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ad38de1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@dnd-kit/dom Patch
@dnd-kit/abstract Patch
@dnd-kit/collision Patch
@dnd-kit/geometry Patch
@dnd-kit/helpers Patch
@dnd-kit/react Patch
@dnd-kit/solid Patch
@dnd-kit/state Patch
@dnd-kit/svelte Patch
@dnd-kit/vue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sortable items of different heights swap back and forth while dragging

1 participant