Skip to content

Commit

Permalink
Watch for inputRef as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Nov 22, 2023
1 parent 1ee0110 commit 95c076a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/formio/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const TextArea: React.FC<JSX.IntrinsicElements['textarea'] & TextAreaProp
inputRef.current.style.height = 'inherit';
inputRef.current.style.height = `${inputRef.current.scrollHeight}px`;
}
}, [autoExpand, value]);
}, [autoExpand, inputRef, value]);

const htmlId = `editform-${name}`;
if (value === undefined && props.value === undefined) {
Expand Down

0 comments on commit 95c076a

Please sign in to comment.