forked from MapComplete/MapComplete
Use replace-with instead of appendChild
This commit is contained in:
parent
228ceb120d
commit
a9d81f79b7
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
} else {
|
} else {
|
||||||
html = construct.ConstructElement();
|
html = construct.ConstructElement();
|
||||||
}
|
}
|
||||||
elem.appendChild(html)
|
elem.replaceWith(html)
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<span bind:this={elem}></span>
|
<span bind:this={elem}></span>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue