Skip to content

Commit

Permalink
fix: don't pass undefined to controlled component
Browse files Browse the repository at this point in the history
`fieldMeta.value` is intially `undefined`, making the component think it
is uncontrolled, even though it is actually controlled
  • Loading branch information
martinobersteiner committed Nov 19, 2024
1 parent 44a7ba7 commit 6d7eac8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const LeftLabeledTextField = ({
placeholder={placeholder}
rows={rows}
type="text"
value={fieldMeta.value}
value={fieldMeta.value || null}
/>
{required && (
<div className="ui corner label">
Expand Down

0 comments on commit 6d7eac8

Please sign in to comment.