From 6c9d6fa9e658656c9d77518bad8723c12fbb3e26 Mon Sep 17 00:00:00 2001 From: seb Date: Tue, 27 Oct 2026 00:28:18 +0100 Subject: [PATCH] u --- src/FillSpace.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FillSpace.jsx b/src/FillSpace.jsx index 6cb74fb..ca0d4de 100644 --- a/src/FillSpace.jsx +++ b/src/FillSpace.jsx @@ -311,7 +311,7 @@ class FillSpace extends Component { containerTarget, ]; for (const el of targets) { - if (el && el.offsetParent !== null) { + if (el && typeof Element !== 'undefined' && el instanceof Element && el.offsetParent !== null) { this.observer.observe(el); } }