From 3acc65ca0dde5c4650274517ec02ee4b3ce821a7 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 10 Mar 2022 22:36:43 -0800 Subject: [PATCH] Fix broken toast animations & DOM removal --- src-ui/src/app/components/common/toasts/toasts.component.html | 2 +- src-ui/src/app/components/common/toasts/toasts.component.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/common/toasts/toasts.component.html b/src-ui/src/app/components/common/toasts/toasts.component.html index 9d4ae6bb6..b79208ebf 100644 --- a/src-ui/src/app/components/common/toasts/toasts.component.html +++ b/src-ui/src/app/components/common/toasts/toasts.component.html @@ -2,7 +2,7 @@ *ngFor="let toast of toasts" [header]="toast.title" [autohide]="true" [delay]="toast.delay" [class]="toast.classname" - (hide)="toastService.closeToast(toast)"> + (hidden)="toastService.closeToast(toast)">

{{toast.content}}

diff --git a/src-ui/src/app/components/common/toasts/toasts.component.scss b/src-ui/src/app/components/common/toasts/toasts.component.scss index 4d1c95fce..d2aaf20b0 100644 --- a/src-ui/src/app/components/common/toasts/toasts.component.scss +++ b/src-ui/src/app/components/common/toasts/toasts.component.scss @@ -5,3 +5,7 @@ margin: 0.5em; z-index: 1200; } + +.toast:not(.show) { + display: block; // this corrects an ng-bootstrap bug that prevented animations +} \ No newline at end of file