Pārlūkot izejas kodu

add custom_attrs to pc.element (#1131)

Sheldon 2 gadi atpakaļ
vecāks
revīzija
5fd428e92f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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],