dmacfarlane / angular-mentions

Angular mentions for text fields.
MIT License
196 stars 171 forks source link

Dropdown Not Triggering After Typing Characters Following '@' once editor lose focus #257

Open clx174 opened 2 months ago

clx174 commented 2 months ago

Description The mention dropdown only triggers when '@' is typed. If I type '@joh' and the users are filtered, then click outside the editor, and come back to type 'n' (making '@John'), the dropdown does not reappear. The dropdown should trigger again after typing any character following '@', up to 10 characters.

Steps to Reproduce

  1. Type '@' in the editor.
  2. Type a few characters (e.g., '@joh') to filter users.
  3. Click outside the editor.
  4. Click back into the editor and type another character (e.g., 'n' to make '@John').

Expected Behavior The mention dropdown should re-trigger and filter users after typing any character following '@', up to 10 characters.

Actual Behavior The mention dropdown does not re-trigger and filter users after typing characters following '@' if the editor loses and regains focus.

Question Is there a workaround to make this possible or can I expect this feature in future. Thanks.