Skip to content

Commit

Permalink
Merge pull request #13850 from mehmetcetin01140/#11838
Browse files Browse the repository at this point in the history
fixed #11838 - refactor unblock method conditional in blockui
  • Loading branch information
cetincakiroglu authored Oct 11, 2023
2 parents 3dc3c3a + 37d1a0f commit 40a2c7c
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 @@ -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');
}
Expand Down

1 comment on commit 40a2c7c

@vercel
Copy link

@vercel vercel bot commented on 40a2c7c Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.