Skip to content

Commit

Permalink
Fixed primefaces#11313 - Toast | z-index shouldn't removed when other…
Browse files Browse the repository at this point in the history
… toasts are shown
  • Loading branch information
Urtgard committed Mar 17, 2022
1 parent 3dcaeb4 commit 2bbdf69
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 2bbdf69

Please sign in to comment.