From 272dfc2d7e7bfbbf4c0f9d41da3ec884cba213f3 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Sat, 6 May 2023 23:07:57 -0700 Subject: [PATCH] Added default val radio group (#961) --- pynecone/components/forms/radio.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pynecone/components/forms/radio.py b/pynecone/components/forms/radio.py index 41283eaee..9abcb4237 100644 --- a/pynecone/components/forms/radio.py +++ b/pynecone/components/forms/radio.py @@ -20,6 +20,9 @@ class RadioGroup(ChakraComponent): # State var to bind the the input. value: Var[Any] + # The default value. + default_value: Var[Any] + @classmethod def get_controlled_triggers(cls) -> Dict[str, Var]: """Get the event triggers that pass the component's value to the handler.