dnd-kit icon indicating copy to clipboard operation
dnd-kit copied to clipboard

Item repositioning after a state change seems to wrongly calculate initial coordinates

Open 0xF013 opened this issue 2 years ago • 4 comments

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

0xF013 avatar Mar 21 '22 19:03 0xF013

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

clauderic avatar Mar 22 '22 03:03 clauderic

Perfect, thank you

0xF013 avatar Mar 22 '22 09:03 0xF013

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

0xF013 avatar Jun 06 '22 07:06 0xF013

@clauderic hi, sorry to bother. Do you happen to have an update on this?

0xF013 avatar Aug 09 '22 11:08 0xF013