diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index 72c8ece449f..a6e3d72c717 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -626,7 +626,10 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy { this.unbindMaskClickListener(); } - if (this.modal) { + // for nested dialogs w/modal + const scrollBlockers = document.querySelectorAll('.p-dialog-mask-scrollblocker'); + + if (this.modal && scrollBlockers && scrollBlockers.length == 1) { DomHandler.unblockBodyScroll(); }