Skip to content

Commit

Permalink
fix(toast): fix animation bug when close toast panel
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Jun 8, 2020
1 parent bb45f5a commit 495270f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/pages/portal/portal.animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export function toastPanelAnimation(): AnimationTriggerMetadata[] {
display: 'none'
})
),
transition('* => *', animate('200ms')),
transition('* => void', animate('0ms')),
transition('* => *', animate('200ms'))
]),
trigger('toastPanelOffsetX', [
state(
Expand Down Expand Up @@ -128,7 +129,8 @@ export function toastPanelAnimation(): AnimationTriggerMetadata[] {
zIndex: '1'
})
),
transition('* => *', animate('200ms'))
transition('* => void', animate('0ms')),
transition('* => *', animate('200ms')),
])
];
}
Expand Down

0 comments on commit 495270f

Please sign in to comment.