fix comments

This commit is contained in:
Elijah 2024-12-12 22:54:27 +00:00
parent fb8e28c219
commit 7286ec5c5c
2 changed files with 2 additions and 2 deletions

View File

@ -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
):

View File

@ -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
):