Skip to content

Commit 67b8555

Browse files
committed
šŸ› fix: incorrect property name 'sizeToContent' when cleaning up invalid attributes
1 parent a596e20 commit 67b8555

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)