fix comments
This commit is contained in:
parent
fb8e28c219
commit
7286ec5c5c
@ -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
|
||||
):
|
||||
|
@ -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
|
||||
):
|
||||
|
Loading…
Reference in New Issue
Block a user