From 747e6cacb9ea91d62f55465137bf56581e3048ff Mon Sep 17 00:00:00 2001 From: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Date: Mon, 30 Jan 2023 16:59:22 +0530 Subject: [PATCH] fix: Fixes enter key sending text while mentions menu is active (#6359) --- .../dashboard/components/widgets/conversation/ReplyBox.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 3f4bd012c..3bbaf2c9b 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -236,6 +236,7 @@ export default { updateEditorSelectionWith: '', undefinedVariableMessage: '', showMentions: false, + showUserMentions: false, showCannedMenu: false, showVariablesMenu: false, }; @@ -631,6 +632,7 @@ export default { }, isAValidEvent(selectedKey) { return ( + !this.showUserMentions && !this.showMentions && !this.showCannedMenu && !this.showVariablesMenu && @@ -652,7 +654,7 @@ export default { }); }, toggleUserMention(currentMentionState) { - this.showMentions = currentMentionState; + this.showUserMentions = currentMentionState; }, toggleCannedMenu(value) { this.showCannedMenu = value;