Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to drag item backwards (Sandbox available) #1392

Closed
samkingtwentytwo opened this issue Apr 30, 2024 · 2 comments
Closed

Unable to drag item backwards (Sandbox available) #1392

samkingtwentytwo opened this issue Apr 30, 2024 · 2 comments

Comments

@samkingtwentytwo
Copy link

Hi guys, my handleDragOver function seems to be working fine, apart from when i drag the item backwards after going in one direction, it jumps an extra one each time. Been working on this for ages :(

https://codesandbox.io/p/devbox/kanban-3wq44f?file=%2Fapp%2Fpage.jsx

Much appreciated in advance!

@VladimirAfanasievFS
Copy link

Hi. Id should match with itemsIds

<SortableContext items={column.taskIds.map((id) => task-${id})}>

https://docs.dndkit.com/presets/sortable/usesortable#identifier

@samkingtwentytwo
Copy link
Author

!!!!!!!!!!!!!!!!!!!!!!!! MY GUY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

THANKYOU SO MUCH!!!

You have saved weeks of trial and tribulation!

Thankyou my friend.

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

No branches or pull requests

2 participants