Enhancement: Remove v-model.trim from reply box (#1071)

This commit is contained in:
Pranav Raj S 2020-07-20 17:39:36 +05:30 committed by GitHub
parent b803ae3300
commit 440f449e24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ||