Skip to content

Commit

Permalink
Merge pull request #11314 from Urtgard/master
Browse files Browse the repository at this point in the history
Fixed #11313 - Toast | z-index shouldn't removed when other toasts are shown
  • Loading branch information
yigitfindikli authored Mar 30, 2022
2 parents a6613a0 + 2bbdf69 commit 232b402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/toast/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class Toast implements OnInit,AfterContentInit,OnDestroy {

onAnimationEnd(event: AnimationEvent) {
if (event.toState === 'void') {
if (this.autoZIndex) {
if (this.autoZIndex && !this.messages.length ) {
ZIndexUtils.clear(this.containerViewChild.nativeElement);
}
}
Expand Down

0 comments on commit 232b402

Please sign in to comment.