Skip to content

Commit

Permalink
only allow item inside root (#4697)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lendemor authored Jan 29, 2025
1 parent 96ead07 commit 58f87a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reflex/components/radix/themes/components/radio_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 58f87a6

Please sign in to comment.