diff --git a/src/gridstack.js b/src/gridstack.js index 0a22d4d..bbf077a 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -1253,7 +1253,7 @@ el.each(function(index, el) { el = $(el); var node = el.data('_gridstack_node'); - if (typeof node == 'undefined' || node === null) { + if (self.opts.staticGrid || typeof node == 'undefined' || node === null) { return; } @@ -1273,7 +1273,7 @@ el.each(function(index, el) { el = $(el); var node = el.data('_gridstack_node'); - if (typeof node == 'undefined' || node === null) { + if (self.opts.staticGrid || typeof node == 'undefined' || node === null) { return; }