This commit is contained in:
seb
2026-10-27 00:28:18 +01:00
parent a0c18ff4e7
commit 6c9d6fa9e6

View File

@@ -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);
}
}