Skip to content

Commit eb31e51

Browse files
Fix #2150 - Avoid trashing previous added elements (#2151)
1 parent c8c2dd0 commit eb31e51

File tree

1 file changed

+1
-1
lines changed
  • pyscript.core/src/stdlib/pyscript

1 file changed

+1
-1
lines changed

pyscript.core/src/stdlib/pyscript/web.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def __init__(
421421
self.append(child)
422422

423423
else:
424-
self.innerHTML += child
424+
self._dom_element.insertAdjacentHTML("beforeend", child)
425425

426426
def __iter__(self):
427427
yield from self.children

0 commit comments

Comments
 (0)