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

Skip to content

Commit 71615d0

Browse files
committed
issue-805 - fix node being added to grid more than once after being dragged out of bounds
1 parent 644f3ca commit 71615d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gridstack.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,7 @@
12211221
.attr('data-gs-height', node.height);
12221222
node.x = node._beforeDragX;
12231223
node.y = node._beforeDragY;
1224+
node._temporaryRemoved = false;
12241225
self.grid.addNode(node);
12251226
}
12261227
}

0 commit comments

Comments
 (0)