fix: Fixes enter key sending text while mentions menu is active (#6359)

This commit is contained in:
Nithin David Thomas
2023-01-30 16:59:22 +05:30
committed by GitHub
parent 024af909e3
commit 747e6cacb9

View File

@@ -236,6 +236,7 @@ export default {
updateEditorSelectionWith: '', updateEditorSelectionWith: '',
undefinedVariableMessage: '', undefinedVariableMessage: '',
showMentions: false, showMentions: false,
showUserMentions: false,
showCannedMenu: false, showCannedMenu: false,
showVariablesMenu: false, showVariablesMenu: false,
}; };
@@ -631,6 +632,7 @@ export default {
}, },
isAValidEvent(selectedKey) { isAValidEvent(selectedKey) {
return ( return (
!this.showUserMentions &&
!this.showMentions && !this.showMentions &&
!this.showCannedMenu && !this.showCannedMenu &&
!this.showVariablesMenu && !this.showVariablesMenu &&
@@ -652,7 +654,7 @@ export default {
}); });
}, },
toggleUserMention(currentMentionState) { toggleUserMention(currentMentionState) {
this.showMentions = currentMentionState; this.showUserMentions = currentMentionState;
}, },
toggleCannedMenu(value) { toggleCannedMenu(value) {
this.showCannedMenu = value; this.showCannedMenu = value;