For me it is not working correctly - official flarum forum
Some ideas:
Thanks for the report. I can't reproduce so can you please provide more specific instructions on how you're encountering this bug. e.g. which editor are you using (new discussion, reply?) which topic? does it happen after you reload the page? with other usernames? what about if you backspace a few times and then try again?
User avatar is already present next to the name in the dropdown menu.
Also, what browser and OS are you using? Cannot reproduce on desktop Firefox or Chrome.
I have experienced this. After some investigating (Devflarum - dev-master) Firefox 48
it appears it happens after several lines

Google Chrome last beta version (Win 10, 64 bit, Pro - anniversary update)
As @kulga - soemthing like this, but it happens only for some users
@Eldenroot user exists
Only users already loaded from the API are suggested by the dropdown. The list of users will be far from complete.
In order to see a user he must have an interaction in the visible portion of the discussion, be visible on the homepage if you went from here, or appeared on any other page visited before starting to write the mention.
This doesn't explain @kulga 's demo though :sweat_smile:
It will also hit the API for users as you type https://github.com/flarum/flarum-ext-mentions/blob/9da2ac1e122f6c2f9dce8c75dd407219cce9372c/js/forum/src/addComposerAutocomplete.js#L179
I reckon @kulga's find is to do with dodgy positioning of the list, related to the scroll position of the textarea
Missed that API call when reading the code :see_no_evil:
Yes, same issue happened to me with the emoji autocomplete when writing long messages. Not sure if that's reported as another issue.
IMO we should close this, until we have reproducible instructions for hitting the bug.
@ and see absence of dropdown (it is positioned off the screen)Oh, the original issue description made it sound like the dropdown appears, but without correct matches for usernames. Is that a different issue then?
The original reported issue was not specific but is likely the same as what's happening in @kulga's comment. There's nothing to indicate that the username matching isn't working properly.
I suppose we calculate the positioning logic based on the position of the cursor within the textarea, while ignoring whether it has been scrolled down.
I did a frontend thing. :scream:
Most helpful comment
I did a frontend thing. :scream: