Dejan Eric
Dejan Eric
The issue suggest that you have 2 same ID when executing your logic. Happened to me. Can you share your code?
Try to use different collision detectors. For example closest center. https://docs.dndkit.com/api-documentation/context-provider/collision-detection-algorithms
useLayoutEffect custom hook for each sortable that stores the scroll position. Simple.
I think it's not possible based on what I read. You need to use the same context. It's not practical but achievable. Here is how I implemented mine https://app.simplyfitness.com/workout-builder/new
I will publish the code on sandbox.
I had the same kind of issues and the reason is that you are missing a case scenario in your dragOver or dragEnd functions. To find the issue you need...
The items Id needs to be a string.
Try to use arrayMove function to set the state to default values.