only allow item inside root (#4697)

This commit is contained in:
Thomas Brandého 2025-01-29 07:54:23 +01:00 committed by GitHub
parent 96ead07606
commit 58f87a6aa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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."""