From 7286ec5c5cf27067d62fb1303fed8f78f1995269 Mon Sep 17 00:00:00 2001 From: Elijah Date: Thu, 12 Dec 2024 22:54:27 +0000 Subject: [PATCH] fix comments --- reflex/components/el/elements/forms.py | 2 +- reflex/components/radix/themes/components/text_field.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/components/el/elements/forms.py b/reflex/components/el/elements/forms.py index 55f5ec99b..7b893cf98 100644 --- a/reflex/components/el/elements/forms.py +++ b/reflex/components/el/elements/forms.py @@ -400,7 +400,7 @@ class Input(BaseHTML): value = props.get("value") - # React expects an empty string(instead of null) for uncontrolled inputs. + # React expects an empty string(instead of null) for controlled inputs. if value is not None and is_optional( (value_var := Var.create(value))._var_type ): diff --git a/reflex/components/radix/themes/components/text_field.py b/reflex/components/radix/themes/components/text_field.py index 104355404..7e6dfe85c 100644 --- a/reflex/components/radix/themes/components/text_field.py +++ b/reflex/components/radix/themes/components/text_field.py @@ -100,7 +100,7 @@ class TextFieldRoot(elements.Div, RadixThemesComponent): """ value = props.get("value") - # React expects an empty string(instead of null) for uncontrolled inputs. + # React expects an empty string(instead of null) for controlled inputs. if value is not None and is_optional( (value_var := Var.create(value))._var_type ):