From 55966637778f6efab0fc3d91afb498d86b7575d6 Mon Sep 17 00:00:00 2001 From: Jackson Bush Date: Tue, 26 Sep 2023 13:55:34 -0400 Subject: [PATCH] Another fix for #13034. Breaking out early in the align() method when the confirmation is null. --- src/app/components/confirmpopup/confirmpopup.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/components/confirmpopup/confirmpopup.ts b/src/app/components/confirmpopup/confirmpopup.ts index 0ac93b909cb..04d7e76183f 100755 --- a/src/app/components/confirmpopup/confirmpopup.ts +++ b/src/app/components/confirmpopup/confirmpopup.ts @@ -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);