[fix] check parentNode exists before removing child (#6910)

Fixes #6037
pull/8016/head
byt3r 2 years ago committed by GitHub
parent d39920fb10
commit 84ea242666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -204,7 +204,9 @@ export function insert_hydration(target: NodeEx, node: NodeEx, anchor?: NodeEx)
}
export function detach(node: Node) {
node.parentNode.removeChild(node);
if (node.parentNode) {
node.parentNode.removeChild(node);
}
}
export function destroy_each(iterations, detaching) {

Loading…
Cancel
Save