Skip to content

Commit

Permalink
fix: mention up reappears after inserting the mention
Browse files Browse the repository at this point in the history
- when COOL inserts the mention it sends 'UI_Mention'
  with 'type: selected', we don't want to send 'Action_Mention'
  for 'selected' type

Signed-off-by: Rashesh Padia <[email protected]>
  • Loading branch information
Rash419 committed Dec 12, 2023
1 parent 95207a5 commit 1d15b23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view/Office.vue
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,9 @@ export default {
})
break
case 'UI_Mention':
this.uiMention(parsed.args.text)
if (parsed.args.type === 'autocomplete') {
this.uiMention(parsed.args.text)
}
break
case 'UI_CreateFile':
FilesAppIntegration.createNewFile(args.DocumentType)
Expand Down

0 comments on commit 1d15b23

Please sign in to comment.