fix display multiple append with target (#1126)

* fix display multiple append with target

* flake8 ignore long lines

* fix img render test
This commit is contained in:
Madhur Tandon
2023-01-24 22:01:19 +05:30
committed by GitHub
parent 357fbc644d
commit 4e8281c749
2 changed files with 27 additions and 5 deletions

View File

@@ -250,7 +250,7 @@ class Element:
child = js.document.createElement("div")
self.element.appendChild(child)
if self.element.children:
if append and self.element.children:
out_element = self.element.children[-1]
else:
out_element = self.element