Skip to content

Commit

Permalink
fix(cdk): prevent page scrolling when a modal is open (#5599)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Oct 12, 2023
1 parent a71da98 commit 50e5320
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export class TuiDialogHostComponent<T extends TuiDialog<unknown, unknown>>
this.dialogs = dialogs;
this.cdr.markForCheck();

// TODO: Hack for mobile Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1845264
this.doc.documentElement.classList.toggle(
't-overscroll-none',
!!dialogs.length,
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/root/root.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tui-root > .t-root-scrollbar {
isolation: isolate;
}

// TODO: Required by Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1845264
.t-overscroll-none {
overscroll-behavior: none;
overflow: hidden;
}

0 comments on commit 50e5320

Please sign in to comment.