To reproduce:
- Write a post in visual editing mode.
- Type @
- Type a username.
- Complete the mention.
Observed: The caret is before the link to the username.
Expected: The caret must be after the username.
This happens on Firefox.
(It's so consistent that I already got accustomed to moving the caret after the link, but it's not actually good.)