Przeglądaj źródła

Radio group fix deprecation warning for creating vars with strings (#3567)

Elijah Ahianyo 11 miesięcy temu
rodzic
commit
28a72efc83

+ 1 - 1
reflex/components/radix/themes/components/radio_group.py

@@ -144,7 +144,7 @@ class HighLevelRadioGroup(RadixThemesComponent):
         color_scheme = props.pop("color_scheme", None)
         default_value = props.pop("default_value", "")
 
-        default_value = Var.create(default_value)
+        default_value = Var.create(default_value, _var_is_string=True)
 
         # convert only non-strings to json(JSON.stringify) so quotes are not rendered
         # for string literal types.