Browse Source

svg: replace existing content

Falko Schindler 3 năm trước cách đây
mục cha
commit
16c7664e2a
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      nicegui/elements/svg.py

+ 1 - 0
nicegui/elements/svg.py

@@ -26,6 +26,7 @@ class Svg(Element):
     @content.setter
     def content(self, content: any):
 
+        self.view.components = []
         jp.parse_html(content, a=self.view)
 
     def set_content(self, content: str):