clauderic / clauderic/dnd-kit

[Experiment BUG] Why the source in onDragEnd is not the real start source information

Open
#1,787 3 comments 7 reactions 0 assignees View on GitHub
bug needs reproduction case react stale triage:done
Dominant language
TypeScript
Stars
17.6k
Forks
924
Avg merge
2d 10h
Merged PRs (30d)
2

Description

The source and target of onDragEnd seem to be the same all the time, so the source should be the information before the move and the target is the information after the move, but the source still shows the result of the end of the move; there is also the Draggable and Droppable seem to be missing the The type of sortable is missing from Draggable and Droppable.

"@dnd-kit/helpers": "^0.1.21",
"@dnd-kit/react": "^0.1.21",

useSortable

Also, can a sorting direction setting be added, such as horizontal or vertical?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the onDragEnd behavior with useSortable and inspect the source and target data passed through Draggable and Droppable in the reported @dnd-kit/react setup. Confirm what source and target should contain before and after a move, then verify whether sortable type and horizontal or vertical sorting direction are separate changes requiring distinct acceptance criteria.

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
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.