Browse Source

only allow item inside root (#4697)

Thomas Brandého 4 months ago
parent
commit
58f87a6aa7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      reflex/components/radix/themes/components/radio_cards.py

+ 2 - 0
reflex/components/radix/themes/components/radio_cards.py

@@ -85,6 +85,8 @@ class RadioCardsItem(RadixThemesComponent):
     # When true, indicates that the user must check the radio item before the owning form can be submitted.
     required: Var[bool]
 
+    _valid_parents: list[str] = ["RadioCardsRoot"]
+
 
 class RadioCards(SimpleNamespace):
     """RadioCards components namespace."""