dnd-kit
dnd-kit copied to clipboard
Item repositioning after a state change seems to wrongly calculate initial coordinates
Related to #669
Changing the position of an item seems to wrongly "remember" (or fail to reset) the previous position of the item. In this sandbox, the "^" button moves the items to position 3. If an item above the position 3 has been moved, future items animation seem to start from way up instead of from their actual position.
Sandbox: https://codesandbox.io/s/dnd-kit-sortable-forked-443to2?file=/src/App.jsx
https://user-images.githubusercontent.com/1038822/159350764-b095a31a-1902-44f8-9557-bf177611ec39.mov
This issue should be resolved by https://github.com/clauderic/dnd-kit/pull/672
https://codesandbox.io/s/dnd-kit-sortable-forked-ghwnln?file=/src/App.jsx
Perfect, thank you
hey @clauderic I am trying to use the latest releases and I am getting this again https://codesandbox.io/s/dnd-kit-sortable-forked-17d4j7?file=/src/App.jsx
@clauderic hi, sorry to bother. Do you happen to have an update on this?