From 58f87a6aa7057bbaec9ead8aff4216c19a625f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Brand=C3=A9ho?= Date: Wed, 29 Jan 2025 07:54:23 +0100 Subject: [PATCH] only allow item inside root (#4697) --- reflex/components/radix/themes/components/radio_cards.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reflex/components/radix/themes/components/radio_cards.py b/reflex/components/radix/themes/components/radio_cards.py index e075a1ba28d..4a9aefc9957 100644 --- a/reflex/components/radix/themes/components/radio_cards.py +++ b/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."""