Username appears as `@undefined` if username is pasted and selected before options load
Summary
When I paste @username and quickly hit enter the @ mention becomes @undefined.
This only happens the first time a page loads.
It's causing a QA test to fail: #321876 (closed)
Steps to reproduce
- Load an issue page.
- Paste
@mlapierreand quickly press enter
What is the current bug behavior?
The @ mention appears as @undefined.
What is the expected correct behavior?
It should appear as @mlapierre
Relevant logs and/or screenshots
Example Project
This issue
Output of checks
This bug happens on GitLab.com on Canary
Edited by Mark Lapierre
