1
0
Khaleel Al-Adhami 2 долоо хоног өмнө
parent
commit
25615412e0

+ 1 - 3
reflex/components/component.py

@@ -1130,9 +1130,7 @@ class Component(BaseComponent, ABC):
         Returns:
         Returns:
             The component.
             The component.
         """
         """
-        comp = cls(id=props.get("id"), children=list(children))
-        comp._post_init(children=list(children), **props)
-        return comp
+        return cls(id=props.get("id"), children=list(children), **props)
 
 
     @classmethod
     @classmethod
     def _unsafe_create(
     def _unsafe_create(