clauderic / clauderic/dnd-kit

ShadowDOM - Sorting still buggy in 0.5.0

Open
#1,967 3 comments 1 reaction 0 assignees View on GitHub
bug helpers triage:done
Dominant language
TypeScript
Stars
17.6k
Forks
924
Avg merge
2d 10h
Merged PRs (30d)
2

Description

Continuation of previous issue #1765

Sorting between lists within a shadow-dom is still problematic. As far as i can tell, the move helper is the main culprit, since simple single list sorting works perfectly when move() isnt invoked (as evidenced in the sandbox with the column sorting).

Strangely, it does seem to function fine when decreasing the item's indexation (moving to earlier in the list), but breaks when moving it later in the list.

I've modified the sandbox to use a shadow-dom so you can see what's happening.
https://codesandbox.io/p/sandbox/p7r9tj

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and compare the cross-list ShadowDOM behavior when move() is invoked with moves to earlier versus later indexes. Read previous issue #1765 for context, then verify that sorting between ShadowDOM lists works in both directions without breaking single-list sorting.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.