atlassian / react-beautiful-dnd

Beautiful and accessible drag and drop for lists with React
https://react-beautiful-dnd.netlify.app
Other
33.16k stars 2.53k forks source link

Multi drag demo bug #2659

Open ruixingshi opened 4 weeks ago

ruixingshi commented 4 weeks ago

Expected behavior

The multiple selections index has not changed

Actual behavior

The multiple selections index has been moved down

Steps to reproduce

https://github.com/user-attachments/assets/ec8c8abb-7a5c-4400-92d7-316056fcae32

Suggested solution?

Optimize the calculation logic in reorderMultiDrag

What version of React are you using?

16.13.1

What version of react-beautiful-dnd are you running?

13.1.1

What browser are you using?

Chrome

Demo

Can reproduce at https://react-beautiful-dnd.netlify.app/?path=/story/multi-drag--pattern

ruixingshi commented 4 weeks ago

Solve PR: https://github.com/atlassian/react-beautiful-dnd/pull/2661