8000 Merge pull request #3070 from capdiem/bugfix/gs-size-to-context-on-el… · gridstack/gridstack.js@b839db9 · GitHub
[go: up one dir, main page]

Skip to content

Commit b839db9

Browse files
authored
Merge pull request #3070 from capdiem/bugfix/gs-size-to-context-on-element
fix: incorrect property name 'sizeToContent' when cleaning up invalid attributes
2 parents a596e20 + 67b8555 commit b839db9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridstack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ export class GridStack {
17251725
// remove any key not found (null or false which is default, unless sizeToContent=false override)
17261726
for (const key in n) {
17271727
if (!n.hasOwnProperty(key)) return;
1728-
if (!n[key] && n[key] !== 0 && key !== 'gs-size-to-content') { // 0 can be valid value (x,y only really)
1728+
if (!n[key] && n[key] !== 0 && key !== 'sizeToContent') { // 0 can be valid value (x,y only really)
17291729
delete n[key];
17301730
}
17311731
}

0 commit comments

Comments
 (0)
0