diff options
author | 2019-04-08 20:53:45 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:54 +0300 | |
commit | 1a9fb01bcf64a4016fc8167f51871df1a85b692d (patch) | |
tree | c8d202ce2722a62208dc3e6e1a10ca9f0d3ded9a /vnext/src/components/MessageInput.js | |
parent | e46fe57e15cda3869b07c624bbc138c441055a9a (diff) |
Cleanup ESLint warnings
Diffstat (limited to 'vnext/src/components/MessageInput.js')
-rw-r--r-- | vnext/src/components/MessageInput.js | 2 |
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)) { |