diff --git a/web/chat/chat-input-bar.react.js b/web/chat/chat-input-bar.react.js --- a/web/chat/chat-input-bar.react.js +++ b/web/chat/chat-input-bar.react.js @@ -345,8 +345,10 @@ onKeyDown = (event: SyntheticKeyboardEvent) => { if (event.keyCode === 13 && !event.shiftKey) { - event.preventDefault(); - this.send(); + if (this.textarea?.value.trim() || this.multimediaInput?.value.trim()) { + event.preventDefault(); + this.send(); + } } };