Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 064a79f

Browse files
authored
Merge pull request gridstack#1645 from adumesny/develop
restore items back when draggin in
2 parents 2fa7953 + dafb1af commit 064a79f

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)