Skip to content

Commit 6cee6d2

Browse files
authored
Merge pull request #2712 from adumesny/master
load() sometimes restore incorrectly
2 parents 836d161 + ab3340c commit 6cee6d2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

doc/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ Change log
115115
* fix: [#2683](https://github.com/gridstack/gridstack.js/issues/2683) check for fixed grid maxRow during resize
116116
* fix: [#2694](https://github.com/gridstack/gridstack.js/issues/2694) prevent 'r' rotation to items that can't resize (locked, noResize, fixed sizes)
117117
* fix: [#2709](https://github.com/gridstack/gridstack.js/pull/2709) support for multiple drag targets - Thank you [nickfulcher](https://github.com/nickfulcher)
118+
* fix: [#2669](https://github.com/gridstack/gridstack.js/issues/2669) load() sometimes restore incorrectly
118119

119120
## 10.2.0 (2024-06-02)
120121
* feat: [#2682](https://github.com/gridstack/gridstack.js/pull/2682) You can now press 'Esc' to cancel a move|resize, 'r' to rotate during a drag. added `GridStack.rotate()` as well - Thank you John B. for this feature sponsor.

src/gridstack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,6 +1363,7 @@ export class GridStack {
13631363
const widthChanged = (m.w !== undefined && m.w !== n.w);
13641364
this.moveNode(n, m);
13651365
this.resizeToContentCheck(widthChanged, n); // wait for animation if we changed width
1366+
delete n._orig; // clear out original position now that we moved #2669
13661367
}
13671368
if (m || changed) {
13681369
this._writeAttr(el, n);

0 commit comments

Comments
 (0)