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

Skip to content

Commit 76a319e

Browse files
authored
Merge pull request gridstack#2721 from adumesny/master
more load() now creates in order fixes
2 parents 3bb9f0b + 3d7516c commit 76a319e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Change log
113113
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
114114

115115
## 10.2.1-dev (TBD)
116-
* fix: [#2717](https://github.com/gridstack/gridstack.js/pull/2717) load() now creates in order
116+
* fix: [#2720](https://github.com/gridstack/gridstack.js/pull/2720) load() now creates in order
117117

118118
## 10.2.1 (2024-06-23)
119119
* fix: [#2683](https://github.com/gridstack/gridstack.js/issues/2683) check for fixed grid maxRow during resize

src/gridstack.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ export class GridStack {
413413

414414
if (opts.auto) {
415415
this.batchUpdate(); // prevent in between re-layout #1535 TODO: this only set float=true, need to prevent collision check...
416+
this.engine._loading = true; // loading collision check
416417
this.getGridItems().forEach(el => this._prepareElement(el));
418+
delete this.engine._loading;
417419
this.batchUpdate(false);
418420
}
419421

0 commit comments

Comments
 (0)