Prechádzať zdrojové kódy

add custom_attrs to pc.element (#1131)

Sheldon 2 rokov pred
rodič
commit
5fd428e92f
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      pynecone/el/element.py

+ 1 - 0
pynecone/el/element.py

@@ -27,6 +27,7 @@ class Element(Component):
                 id=self.id,
                 style=self.style,
                 class_name=self.class_name,
+                **self.custom_attrs,
             ).set(
                 contents=str(tag.contents),
                 children=[child.render() for child in self.children],