From 495270fee6ea54acd7ee5d17f7607cb038d38c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Barbeau?= Date: Mon, 8 Jun 2020 14:08:38 -0400 Subject: [PATCH] fix(toast): fix animation bug when close toast panel --- src/app/pages/portal/portal.animation.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/pages/portal/portal.animation.ts b/src/app/pages/portal/portal.animation.ts index 0dd978887..6137ffff0 100644 --- a/src/app/pages/portal/portal.animation.ts +++ b/src/app/pages/portal/portal.animation.ts @@ -82,7 +82,8 @@ export function toastPanelAnimation(): AnimationTriggerMetadata[] { display: 'none' }) ), - transition('* => *', animate('200ms')), + transition('* => void', animate('0ms')), + transition('* => *', animate('200ms')) ]), trigger('toastPanelOffsetX', [ state( @@ -128,7 +129,8 @@ export function toastPanelAnimation(): AnimationTriggerMetadata[] { zIndex: '1' }) ), - transition('* => *', animate('200ms')) + transition('* => void', animate('0ms')), + transition('* => *', animate('200ms')), ]) ]; }