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

This commit is contained in:
Elijah Ahianyo 2024-06-26 09:52:56 -07:00 committed by GitHub
parent d90fa8a266
commit 28a72efc83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.