Skip to content

Commit

Permalink
Only update internal value if autogrow is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmacknz committed Dec 5, 2024
1 parent 49c9aa1 commit 2a8b6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/TextArea/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const TextArea = ({
const onChange = (event: React.ChangeEvent<HTMLTextAreaElement>): void => {
propsOnChange?.(event)

if (!value) {
if (!value && autogrow) {
setInternalValue(event.target.value)
}
}
Expand Down

0 comments on commit 2a8b6be

Please sign in to comment.