From 178cb34319a2f4437d2a9c88eadce6d2548c1aed Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Mon, 13 Dec 2021 12:37:21 +0530 Subject: [PATCH] bug: Fixes expanded reply box is not closing after the message is sent (#3537) --- .../dashboard/components/widgets/conversation/MessagesView.vue | 2 +- .../dashboard/components/widgets/conversation/ReplyBox.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue index 0b054b486..93c47ebf6 100644 --- a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue +++ b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue @@ -112,7 +112,7 @@ :conversation-id="currentChat.id" :is-a-tweet="isATweet" :selected-tweet="selectedTweet" - :popout-reply-box="isPopoutReplyBox" + :popout-reply-box.sync="isPopoutReplyBox" @click="showPopoutReplyBox" @scrollToMessage="scrollToBottom" /> diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 03ed5d260..d2e27184e 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -378,6 +378,7 @@ export default { this.showAlert(errorMessage); } this.hideEmojiPicker(); + this.$emit('update:popoutReplyBox', false); } }, replaceText(message) {