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

Skip to content

Commit d6590d6

Browse files
authored
Merge pull request gridstack#852 from roborto444/issue-805
issue-805 - fix node being added to grid more than once after being dragged out of bounds
2 parents 644f3ca + 71615d0 commit d6590d6

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)