From 50e5320a93ff9945e557d003a31bb67cd8452d3f Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Thu, 12 Oct 2023 10:11:44 +0300 Subject: [PATCH] fix(cdk): prevent page scrolling when a modal is open (#5599) --- projects/cdk/components/dialog-host/dialog-host.component.ts | 1 - projects/core/components/root/root.style.less | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/cdk/components/dialog-host/dialog-host.component.ts b/projects/cdk/components/dialog-host/dialog-host.component.ts index ca7b26cc125d..e5c2b6a70a77 100644 --- a/projects/cdk/components/dialog-host/dialog-host.component.ts +++ b/projects/cdk/components/dialog-host/dialog-host.component.ts @@ -83,7 +83,6 @@ export class TuiDialogHostComponent> 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, diff --git a/projects/core/components/root/root.style.less b/projects/core/components/root/root.style.less index d0c4e743d548..676fce154a58 100644 --- a/projects/core/components/root/root.style.less +++ b/projects/core/components/root/root.style.less @@ -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; }