Make sure not to include placeholders when calling prepare element.
This commit is contained in:
parent
79f509c6e6
commit
847a54c492
4 changed files with 4 additions and 4 deletions
2
dist/gridstack.js
vendored
2
dist/gridstack.js
vendored
|
|
@ -449,7 +449,7 @@
|
|||
if (this.opts.auto) {
|
||||
var elements = [];
|
||||
var _this = this;
|
||||
this.container.children('.' + this.opts.item_class).each(function(index, el) {
|
||||
this.container.children('.' + this.opts.item_class + ':not(.' + this.opts.placeholder_class + ')').each(function(index, el) {
|
||||
el = $(el);
|
||||
elements.push({
|
||||
el: el,
|
||||
|
|
|
|||
2
dist/gridstack.min.js
vendored
2
dist/gridstack.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/gridstack.min.map
vendored
2
dist/gridstack.min.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -449,7 +449,7 @@
|
|||
if (this.opts.auto) {
|
||||
var elements = [];
|
||||
var _this = this;
|
||||
this.container.children('.' + this.opts.item_class).each(function(index, el) {
|
||||
this.container.children('.' + this.opts.item_class + ':not(.' + this.opts.placeholder_class + ')').each(function(index, el) {
|
||||
el = $(el);
|
||||
elements.push({
|
||||
el: el,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue