fix(extension/mention): collapse selection to end after suggestion insertion to fix chrome selection issue with mouse

This commit is contained in:
Dominik Biedebach
2022-06-27 07:50:57 +02:00
parent b2bd909eaa
commit 163de4e187

View File

@@ -50,6 +50,8 @@ export const Mention = Node.create<MentionOptions>({
},
])
.run()
window.getSelection()?.collapseToEnd()
},
allow: ({ state, range }) => {
const $from = state.doc.resolve(range.from)