Within a button in my Angular application, I have a mat-icon with its own defined event. The issue is that when I click on the mat-icon, both its event and the button's event are fired because the mat-icon is nested inside the button tag. I want to prevent the button's event from firing when the mat-icon is clicked, and vice versa excluding the mat-icon portion of the UI. Here is an example of the HTML code within the Angular framework:
<button type="button" class="" (click)="someevent">
<span>
Text
</span>
<mat-icon class='' (click)="differentevent">
delete
</mat-icon>
</button>
How can I address this issue? Both click events are defined in TypeScript.