Description
We have a CSS Grid DND container containing items with different height. When dragging a top item to the second line, it causes infinite position change, i believe because the height of the second row is changing.
See the video:
2023-12-11.14.06.30.mov
I see that the official demo shows grid-like
layout using inline-block
and it works well.
With the display:flex
+ flex-wrap: wrap
+ flex-basis
, that simulates grid layout, it works as well.
But it'd be nice to use CSS Grids
We use the React and have the following config for the sortablejs/react:
animation={150}
swapThreshold={0.25}
emptyInsertThreshold={0}
Expected behavior
No infinite position change when in our case.
Versions - Look in your package.json
for this information:
"react-sortablejs": "6.1.4",
"sortablejs": "1.15.0",
Also the same with the latest 1.15.1
, also 1.15.1 introduces additional issues