Commit ecf3f6a10877f54a592c3f6698c52a5ee79cdfda
1 parent
c768fcba
Fixed error message in Led Indicator
Showing
2 changed files
with
3 additions
and
2 deletions
... | ... | @@ -25,5 +25,5 @@ |
25 | 25 | 'info-toast': notification.type === 'info' |
26 | 26 | }"> |
27 | 27 | <div class="toast-text" [innerHTML]="notification.message"></div> |
28 | - <button #actionButton type="button" mat-button (click)="action()">{{ 'action.close' | translate }}</button> | |
28 | + <button #actionButton type="button" mat-button (click)="action($event)">{{ 'action.close' | translate }}</button> | |
29 | 29 | </div> | ... | ... |
... | ... | @@ -356,7 +356,8 @@ export class TbSnackBarComponent implements AfterViewInit, OnDestroy { |
356 | 356 | } |
357 | 357 | } |
358 | 358 | |
359 | - action(): void { | |
359 | + action(event): void { | |
360 | + event.stopPropagation(); | |
360 | 361 | if (this.snackBarRef) { |
361 | 362 | this.snackBarRef.dismissWithAction(); |
362 | 363 | } else { | ... | ... |