-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
the items (float: false) are incorrectly re-ordered when dragging one out
Your environment
- version 3.1.2 h5, chrome
broke in 2.0.2 https://github.com/gridstack/gridstack.js/releases/tag/v2.0.2
Steps to reproduce
using upcoming collision test case. drag item 3 out, noticed both columns changes and incorrectly re-orders items...
happens with maxRow:3
only
let grid = GridStack.init({float: false, cellHeight: 70, row: 3});
addEvents(grid);
let count = 0;
let items = [
{x:0, y:0}, {x:0, y:1}, {x:0, y:2}, {x:1, y:0}, {x:1, y:1}, {x:1, y:2}
];
items.forEach(n => n.content = String(count++))
grid.load(items);