Skip to content

Commit

Permalink
Another fix for primefaces#13034. Breaking out early in the align() m…
Browse files Browse the repository at this point in the history
…ethod when the confirmation is null.
  • Loading branch information
Jackson Bush committed Sep 26, 2023
1 parent e3a643c commit 5596663
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/confirmpopup/confirmpopup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ export class ConfirmPopup implements AfterContentInit, OnDestroy {
ZIndexUtils.set('overlay', this.container, this.config.zIndex.overlay);
}

if (!this.confirmation) {
return;
}
DomHandler.absolutePosition(this.container, this.confirmation?.target);

const containerOffset = DomHandler.getOffset(this.container);
Expand Down

0 comments on commit 5596663

Please sign in to comment.