diff --git a/src/utils/if.ts b/src/utils/if.ts index dbbbe7cd..41d1400d 100644 --- a/src/utils/if.ts +++ b/src/utils/if.ts @@ -58,7 +58,7 @@ export function ifCondition( associateDestroyable(ctx, [ () => { if (placeholder.isConnected) { - placeholder.parentElement!.removeChild(placeholder); + placeholder.parentNode!.removeChild(placeholder); } }, runExistingDestructors,