angular-mentions icon indicating copy to clipboard operation
angular-mentions copied to clipboard

Fixes issues with close event not firing when the search term doesn't match and ui closes

Open sandeepsuvit opened this issue 7 months ago • 1 comments

Thanks a lot for creating this awesome library.

This PR fixes the close event not triggering when the ui closes when the search term doesn't match

Here is the link to the issue that was reproduced https://stackblitz.com/edit/angular-mentions-gww2i3

  1. Close event fired when search term match is clicked and ui closes image
image
  1. Close event not firing when search term doesn't match but the ui closes image
image

The application I am building requires the close event to be handled by the parent component to set certain properties on the parent component. In the above scenario I am unable to get the close event when the search term doesn't match and the ui closes.

I have added the fix for it in the current PR. Kindly review and merge and share the updated version of the library.

sandeepsuvit avatar Jul 06 '24 15:07 sandeepsuvit