Skip to content

Commit 6cd5084

Browse files
committed
fix isAreaEmpty
1 parent eca0e9f commit 6cd5084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
var collisionNode = _.find(this.nodes, _.bind(function(n) {
178178
return Utils.isIntercepted(n, nn);
179179
}, this));
180-
return collisionNode === null;
180+
return collisionNode === null || typeof collisionNode === 'undefined';
181181
};
182182

183183
GridStackEngine.prototype._sortNodes = function(dir) {

0 commit comments

Comments
 (0)