fix: Adds a space after mention to improve UX (#7506)

This commit is contained in:
Nithin David Thomas
2023-07-12 06:07:37 +05:30
committed by GitHub
parent ec7434d000
commit c7bf93ef8a

View File

@@ -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);