[Experiment BUG] Why the source in onDragEnd is not the real start source information
- 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
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