Showing
1 changed file
with
2 additions
and
1 deletions
@@ -256,6 +256,7 @@ import { | @@ -256,6 +256,7 @@ import { | ||
256 | animate, | 256 | animate, |
257 | } from '@angular/animations'; | 257 | } from '@angular/animations'; |
258 | import { onParentScrollOrWindowResize } from '@core/utils'; | 258 | import { onParentScrollOrWindowResize } from '@core/utils'; |
259 | +import ClickEvent = JQuery.ClickEvent; | ||
259 | 260 | ||
260 | export const toastAnimations: { | 261 | export const toastAnimations: { |
261 | readonly showHideToast: AnimationTriggerMetadata; | 262 | readonly showHideToast: AnimationTriggerMetadata; |
@@ -356,7 +357,7 @@ export class TbSnackBarComponent implements AfterViewInit, OnDestroy { | @@ -356,7 +357,7 @@ export class TbSnackBarComponent implements AfterViewInit, OnDestroy { | ||
356 | } | 357 | } |
357 | } | 358 | } |
358 | 359 | ||
359 | - action(event): void { | 360 | + action(event: MouseEvent): void { |
360 | event.stopPropagation(); | 361 | event.stopPropagation(); |
361 | if (this.snackBarRef) { | 362 | if (this.snackBarRef) { |
362 | this.snackBarRef.dismissWithAction(); | 363 | this.snackBarRef.dismissWithAction(); |