Selaa lähdekoodia

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

Elijah Ahianyo 11 kuukautta sitten
vanhempi
säilyke
28a72efc83
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      reflex/components/radix/themes/components/radio_group.py

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

@@ -144,7 +144,7 @@ class HighLevelRadioGroup(RadixThemesComponent):
         color_scheme = props.pop("color_scheme", None)
         color_scheme = props.pop("color_scheme", None)
         default_value = props.pop("default_value", "")
         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
         # convert only non-strings to json(JSON.stringify) so quotes are not rendered
         # for string literal types.
         # for string literal types.