fix(extension/mention): collapse selection to end after suggestion insertion to fix chrome selection issue with mouse
This commit is contained in:
@@ -50,6 +50,8 @@ export const Mention = Node.create<MentionOptions>({
|
||||
},
|
||||
])
|
||||
.run()
|
||||
|
||||
window.getSelection()?.collapseToEnd()
|
||||
},
|
||||
allow: ({ state, range }) => {
|
||||
const $from = state.doc.resolve(range.from)
|
||||
|
||||
Reference in New Issue
Block a user