SortableJS / Sortable

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
https://sortablejs.github.io/Sortable/
MIT License
29.77k stars 3.71k forks source link

Flex box "align-items" or "justify-content" causes drop area not right #2338

Closed awesomeWay closed 11 months ago

awesomeWay commented 11 months ago

Describe the bug List item is unable to be added properly to group container with either flex position properties align-content,flex-wrapaccompanied to flex parent.

To Reproduce Steps to reproduce the behavior:

  1. Go to group css container that holds the list
  2. Change properties to following
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;

Expected behavior

https://github.com/SortableJS/Sortable/assets/27142683/d6d08149-dbf2-4300-824d-1e3165a1d3cd

Information sortablejs = ^1.15.1

Reproduction codesandbox: https://stackblitz.com/edit/react-yqho1b?file=src%2Fstyle.css,src%2FCenter.js,src%2FLeft.js,src%2Findex.js