I inspected the match regex that you are using and it states that it will match between 0-20 characters after the trigger, usually being "@".
I ran a test by typing the following, or similar, into the text box... yet the suggestions within the jQuery UI menu dropdown still remained displayed.
@Testing testing 123 this is far more than 20 characters now...
The only way I could get them to hide was when the textarea lost focus. Once it regained focus again, I could then begin to delete character by character until there were 20 remained and the suggestions then displayed again as expected.
I inspected the match regex that you are using and it states that it will match between 0-20 characters after the trigger, usually being "@".
I ran a test by typing the following, or similar, into the text box... yet the suggestions within the jQuery UI menu dropdown still remained displayed.
@Testing testing 123 this is far more than 20 characters now...
The only way I could get them to hide was when the textarea lost focus. Once it regained focus again, I could then begin to delete character by character until there were 20 remained and the suggestions then displayed again as expected.