From 67b85550b9a5a65675ad9a4515ad620433e441ef Mon Sep 17 00:00:00 2001 From: capdiem Date: Mon, 9 Jun 2025 14:49:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20incorrect=20property=20na?= =?UTF-8?q?me=20'sizeToContent'=20when=20cleaning=20up=20invalid=20attribu?= =?UTF-8?q?tes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gridstack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gridstack.ts b/src/gridstack.ts index 39096f5d..3ca758fc 100644 --- a/src/gridstack.ts +++ b/src/gridstack.ts @@ -1725,7 +1725,7 @@ export class GridStack { // remove any key not found (null or false which is default, unless sizeToContent=false override) for (const key in n) { if (!n.hasOwnProperty(key)) return; - if (!n[key] && n[key] !== 0 && key !== 'gs-size-to-content') { // 0 can be valid value (x,y only really) + if (!n[key] && n[key] !== 0 && key !== 'sizeToContent') { // 0 can be valid value (x,y only really) delete n[key]; } }