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: '',
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;