From 920976003675c072d8fc3d56e614948e304e8387 Mon Sep 17 00:00:00 2001 From: Kalutka Zhenya Date: Thu, 20 May 2021 11:47:17 +0300 Subject: [PATCH] Refactoring --- ui-ngx/src/app/shared/components/toast.directive.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/shared/components/toast.directive.ts b/ui-ngx/src/app/shared/components/toast.directive.ts index 9823e91632..0294e3e671 100644 --- a/ui-ngx/src/app/shared/components/toast.directive.ts +++ b/ui-ngx/src/app/shared/components/toast.directive.ts @@ -256,6 +256,7 @@ import { animate, } from '@angular/animations'; import { onParentScrollOrWindowResize } from '@core/utils'; +import ClickEvent = JQuery.ClickEvent; export const toastAnimations: { readonly showHideToast: AnimationTriggerMetadata; @@ -356,7 +357,7 @@ export class TbSnackBarComponent implements AfterViewInit, OnDestroy { } } - action(event): void { + action(event: MouseEvent): void { event.stopPropagation(); if (this.snackBarRef) { this.snackBarRef.dismissWithAction();