Skip to content

Commit dafb1af

Browse files
committed
restore items back when draggin in
fix #1433
1 parent 02bb690 commit dafb1af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gridstack-dd.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ GridStack.prototype._setupAcceptWidget = function(): GridStack {
119119
}
120120

121121
// re-use the existing node dragging method
122+
delete node._updating; // make sure beginUpdate() is called cleanly on this
122123
this._onStartMoving(event, ui, node, cellWidth, cellHeight);
123124
} else {
124125
// re-use the existing node dragging that does so much of the collision detection

0 commit comments

Comments
 (0)