fix: detach node just if parent node exists

pull/7906/head
Bruno Calou 4 years ago
parent 312298a0e8
commit b99000c567

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

Loading…
Cancel
Save