diff options
author | Gabe Kangas <gabek@real-ity.com> | 2021-07-21 22:29:18 -0700 |
---|---|---|
committer | Gabe Kangas <gabek@real-ity.com> | 2021-07-21 22:29:18 -0700 |
commit | c07fa09795df15c1741d030dc473743e1212bb03 (patch) | |
tree | f9a2a64484ed12599ae09e7f995b55b3ba195aaf | |
parent | e7e1758fa42426cb17a1290c2a4d3db0f0bda2f8 (diff) |
Looks to have been some missing valuesgek/fix-chat-exception
-rw-r--r-- | webroot/js/components/chat/chat-input.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webroot/js/components/chat/chat-input.js b/webroot/js/components/chat/chat-input.js index 367fc9bdf..c0ab66830 100644 --- a/webroot/js/components/chat/chat-input.js +++ b/webroot/js/components/chat/chat-input.js @@ -25,6 +25,7 @@ import { CHAT_CHAR_COUNT_BUFFER, CHAT_OK_KEYCODES, CHAT_KEY_MODIFIERS, + CHAT_MAX_MESSAGE_LENGTH, } from '../../utils/constants.js'; export default class ChatInput extends Component { @@ -234,6 +235,9 @@ export default class ChatInput extends Component { handleMessageInputKeyup(event) { const { key } = event; + const { inputHTML } = this.state; + const textValue = convertToText(inputHTML); + if (key === 'Control' || key === 'Shift') { this.prepNewLine = false; } |