diff --git a/src/app/components/blockui/blockui.ts b/src/app/components/blockui/blockui.ts index b994b19222b..262d8161bdb 100755 --- a/src/app/components/blockui/blockui.ts +++ b/src/app/components/blockui/blockui.ts @@ -116,7 +116,7 @@ export class BlockUI implements AfterViewInit, OnDestroy { } unblock() { - if (this.mask) { + if (this.mask && !this.animationEndListener) { this.animationEndListener = this.renderer.listen(this.mask.nativeElement, 'animationend', this.destroyModal.bind(this)); DomHandler.addClass(this.mask.nativeElement, 'p-component-overlay-leave'); }