Skip to content

Commit

Permalink
fix(extension/mention): collapse selection to end after suggestion in…
Browse files Browse the repository at this point in the history
…sertion to fix chrome selection issue with mouse
  • Loading branch information
bdbch committed Jun 27, 2022
1 parent b2bd909 commit 163de4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/extension-mention/src/mention.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export const Mention = Node.create<MentionOptions>({
},
])
.run()

window.getSelection()?.collapseToEnd()
},
allow: ({ state, range }) => {
const $from = state.doc.resolve(range.from)
Expand Down

0 comments on commit 163de4e

Please sign in to comment.