mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
Enhancement: Remove v-model.trim from reply box (#1071)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
/>
|
||||
<resizable-text-area
|
||||
ref="messageInput"
|
||||
v-model.trim="message"
|
||||
v-model="message"
|
||||
class="input"
|
||||
:placeholder="messagePlaceHolder"
|
||||
:min-height="4"
|
||||
@@ -135,7 +135,7 @@ export default {
|
||||
return `${this.message.length} / ${this.maxLength}`;
|
||||
},
|
||||
isReplyButtonDisabled() {
|
||||
const isMessageEmpty = !this.message.replace(/\n/g, '').length;
|
||||
const isMessageEmpty = !this.message.trim().replace(/\n/g, '').length;
|
||||
return (
|
||||
isMessageEmpty ||
|
||||
this.message.length === 0 ||
|
||||
|
||||
Reference in New Issue
Block a user