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 {
|
||||
html = construct.ConstructElement();
|
||||
}
|
||||
elem.appendChild(html)
|
||||
elem.replaceWith(html)
|
||||
});
|
||||
</script>
|
||||
<span bind:this={elem}></span>
|
||||
|
|
Loading…
Reference in a new issue