Skip to content

Commit

Permalink
fixed #11838 - refactor unblock method conditional in blockui
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Oct 10, 2023
1 parent 3ba085e commit 37d1a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/blockui/blockui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,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');
}
Expand Down

0 comments on commit 37d1a0f

Please sign in to comment.