Skip to content

Commit

Permalink
Merge pull request #14934 from primefaces/issue-14933
Browse files Browse the repository at this point in the history
Fixed #14933 - Scroll bar for the base page reappears after closing a…
  • Loading branch information
cetincakiroglu authored Mar 5, 2024
2 parents 5c50fcb + 19ff3e8 commit d5ccbca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit d5ccbca

Please sign in to comment.