Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahAhianyo committed Dec 12, 2024
1 parent fb8e28c commit 7286ec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reflex/components/el/elements/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def create(cls, *children, **props):

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
):
Expand Down
2 changes: 1 addition & 1 deletion reflex/components/radix/themes/components/text_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def create(cls, *children, **props) -> Component:
"""
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
):
Expand Down

0 comments on commit 7286ec5

Please sign in to comment.