aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/MessageInput.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-08 11:59:59 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commit9c0f90c01b918cc56ac996eebdc21bf58ba07bb1 (patch)
treea67e1f3282f0dc6d48edfb95101cdcb6c1332fcc /vnext/src/components/MessageInput.js
parentdc0fd660d0b5e2ed557dd7409c10f06a198bfe52 (diff)
Thread using hooks
Diffstat (limited to 'vnext/src/components/MessageInput.js')
-rw-r--r--vnext/src/components/MessageInput.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/components/MessageInput.js b/vnext/src/components/MessageInput.js
index 5ace3317..311284cf 100644
--- a/vnext/src/components/MessageInput.js
+++ b/vnext/src/components/MessageInput.js
@@ -21,7 +21,7 @@ export default function MessageInput({ text, data, rows, children, onSend }) {
}
};
useEffect(() => {
- textareaRef.current.value = text;
+ textareaRef.current.value = text || '';
updateFocus();
}, []);