Jelajahi Sumber

[REF-3135] Radix Primitive components should not ignore provided `class_name` prop (#3676)

Elijah Ahianyo 10 bulan lalu
induk
melakukan
1bc1978c31
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      reflex/components/radix/primitives/base.py

+ 1 - 1
reflex/components/radix/primitives/base.py

@@ -26,7 +26,7 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
             ._render()
             .add_props(
                 **{
-                    "class_name": format.to_title_case(self.tag or ""),
+                    "class_name": f"{format.to_title_case(self.tag or '')} {self.class_name or ''}",
                 }
             )
         )