publ-echo-test 0.0.219 → 0.0.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -143,7 +143,10 @@ var GridItem = function (_a) {
|
|
143
143
|
var hasPaddingChanged = false;
|
144
144
|
var minWidth = Number(mutation.target.dataset.minWidth);
|
145
145
|
var minHeight = Number(mutation.target.dataset.minHeight);
|
146
|
-
|
146
|
+
// If minWidth or minHeight is NaN, return early to prevent errors
|
147
|
+
if (isNaN(minWidth) || isNaN(minHeight)) {
|
148
|
+
return;
|
149
|
+
}
|
147
150
|
var height = isSizeChanged
|
148
151
|
? mutation.target.parentNode.clientHeight
|
149
152
|
: mutation.target.clientHeight;
|