Skip to content

Commit

Permalink
fix: Adds a space after mention to improve UX (#7506)
Browse files Browse the repository at this point in the history
  • Loading branch information
nithindavid committed Jul 12, 2023
1 parent ec7434d commit c7bf93e
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -310,11 +310,9 @@ export default {
userFullName: mentionItem.name,
});
const tr = this.editorView.state.tr.replaceWith(
this.range.from,
this.range.to,
node
);
const tr = this.editorView.state.tr
.replaceWith(this.range.from, this.range.to, node)
.insertText(` `);
this.state = this.editorView.state.apply(tr);
this.emitOnChange();
this.$track(CONVERSATION_EVENTS.USED_MENTIONS);
Expand Down

0 comments on commit c7bf93e

Please sign in to comment.