diff --git a/apps/rowboat/components/ui/textarea.tsx b/apps/rowboat/components/ui/textarea.tsx index 01bd61a6..e3ac1390 100644 --- a/apps/rowboat/components/ui/textarea.tsx +++ b/apps/rowboat/components/ui/textarea.tsx @@ -35,6 +35,11 @@ export const Textarea = forwardRef(({ const [validationError, setValidationError] = useState(); const [isEditing, setIsEditing] = useState(false); + // update local value when prop value changes + useEffect(() => { + setLocalValue(propValue as string); + }, [propValue]); + // Sync local state with prop value when not editing useEffect(() => { if (!isEditing) {