diff --git a/client/components/ChatInput.vue b/client/components/ChatInput.vue index e69dd74a..4ba5c58a 100644 --- a/client/components/ChatInput.vue +++ b/client/components/ChatInput.vue @@ -11,11 +11,9 @@ v-model="channel.pendingMessage" :placeholder="getInputPlaceholder(channel)" :aria-label="getInputPlaceholder(channel)" - :disabled="!$root.connected" class="mousetrap" @keypress.enter.exact.prevent="onSubmit" /> @@ -128,6 +126,10 @@ export default { // This can only be called from another interactive event (e.g. button click) $(this.$refs.input).trigger("click").trigger("focus"); + if (!this.$root.connected) { + return false; + } + const target = this.channel.id; const text = this.channel.pendingMessage;