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
|
<resizable-text-area
|
||||||
ref="messageInput"
|
ref="messageInput"
|
||||||
v-model.trim="message"
|
v-model="message"
|
||||||
class="input"
|
class="input"
|
||||||
:placeholder="messagePlaceHolder"
|
:placeholder="messagePlaceHolder"
|
||||||
:min-height="4"
|
:min-height="4"
|
||||||
|
@ -135,7 +135,7 @@ export default {
|
||||||
return `${this.message.length} / ${this.maxLength}`;
|
return `${this.message.length} / ${this.maxLength}`;
|
||||||
},
|
},
|
||||||
isReplyButtonDisabled() {
|
isReplyButtonDisabled() {
|
||||||
const isMessageEmpty = !this.message.replace(/\n/g, '').length;
|
const isMessageEmpty = !this.message.trim().replace(/\n/g, '').length;
|
||||||
return (
|
return (
|
||||||
isMessageEmpty ||
|
isMessageEmpty ||
|
||||||
this.message.length === 0 ||
|
this.message.length === 0 ||
|
||||||
|
|
Loading…
Reference in a new issue