You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
To view the error just filter an element and then select one of the filtered elements, for some reason it fires the change event twice instead of once.
Note: sometimes it doesn't happen the first time, you must redo the filter and select a filtered element again to see the change event being executed twice.
Note: this does not occur when we are not using the custom search
Expected behavior
The correct thing to happen in this scenario is that the change event was executed only once
Desktop (please complete the following information):
Browser [Chrome]
Version [115.0.5790.110]
GIF
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions 🎆
@Output('change') changeEvent = new EventEmitter();
same name as default HTML change() event. This causes name collision and triggers events 2 times. There is nothing we can do since it will break many apps if we try to rename it.
Describe the bug
Change event is being called twice when using custom search
Reproducbile example
Example: https://stackblitz.com/edit/angular-6bd5zv?file=src%2Ftemplate-search-example.component.html
Error: Notice that in the console it is possible to see the change being executed twice
To Reproduce
To view the error just filter an element and then select one of the filtered elements, for some reason it fires the change event twice instead of once.
Note: sometimes it doesn't happen the first time, you must redo the filter and select a filtered element again to see the change event being executed twice.
Note: this does not occur when we are not using the custom search
Expected behavior
The correct thing to happen in this scenario is that the change event was executed only once
Desktop (please complete the following information):
GIF
The text was updated successfully, but these errors were encountered: