Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b839db9

Browse files
Merge pull request gridstack#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)

AltStyle によって変換されたページ (->オリジナル) /