fix(runtime): destroy missing fragment

pull/6996/head
Torsten Dittmann 5 years ago
parent 67f79dd934
commit 9e9acace2e

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

@ -0,0 +1,5 @@
export default {
test({ component }) {
component.$destroy();
}
};

@ -0,0 +1,9 @@
<script>
import { onMount } from 'svelte';
let e;
onMount(() => {
e.remove();
})
</script>
<div bind:this={e} />
Loading…
Cancel
Save