From 8bf206e3780decc248d990db6927b10647d67460 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Mon, 27 Jan 2025 18:29:53 +0100 Subject: [PATCH] only allow item inside root --- 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."""