aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/MessageInput.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-08 20:53:45 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commit1a9fb01bcf64a4016fc8167f51871df1a85b692d (patch)
treec8d202ce2722a62208dc3e6e1a10ca9f0d3ded9a /vnext/src/components/MessageInput.js
parente46fe57e15cda3869b07c624bbc138c441055a9a (diff)
Cleanup ESLint warnings
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 311284cf..ef96b3b5 100644
--- a/vnext/src/components/MessageInput.js
+++ b/vnext/src/components/MessageInput.js
@@ -23,7 +23,7 @@ export default function MessageInput({ text, data, rows, children, onSend }) {
useEffect(() => {
textareaRef.current.value = text || '';
updateFocus();
- }, []);
+ }, [text]);
let handleCtrlEnter = (event) => {
if (event.ctrlKey && (event.charCode == 10 || event.charCode == 13)) {