fix: check parentNode exists before removing child

pull/6910/head
byt3r 5 years ago
parent 4cc439aaad
commit c96bc8d405

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

Loading…
Cancel
Save