Enhancement: Remove v-model.trim from reply box (#1071)
This commit is contained in:
parent
b803ae3300
commit
440f449e24
1 changed files with 2 additions and 2 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Reference in a new issue