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

Skip to content

Commit 847a54c

Browse files
committed
Make sure not to include placeholders when calling prepare element.
1 parent 79f509c commit 847a54c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/gridstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
if (this.opts.auto) {
450450
var elements = [];
451451
var _this = this;
452-
this.container.children('.' + this.opts.item_class).each(function(index, el) {
452+
this.container.children('.' + this.opts.item_class + ':not(.' + this.opts.placeholder_class + ')').each(function(index, el) {
453453
el = $(el);
454454
elements.push({
455455
el: el,

dist/gridstack.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)