@ -25,5 +25,5 @@
'info-toast': notification.type === 'info'
}">
<div class="toast-text" [innerHTML]="notification.message"></div>
<button #actionButton type="button" mat-button (click)="action()">{{ 'action.close' | translate }}</button>
<button #actionButton type="button" mat-button (click)="action($event)">{{ 'action.close' | translate }}</button>
</div>
@ -356,7 +356,8 @@ export class TbSnackBarComponent implements AfterViewInit, OnDestroy {
}
action(): void {
action(event): void {
event.stopPropagation();
if (this.snackBarRef) {
this.snackBarRef.dismissWithAction();
} else {