diff --git a/lib/modal/src/vanilla/modal-base.ts b/lib/modal/src/vanilla/modal-base.ts index 6541e1cf39..909a62290d 100644 --- a/lib/modal/src/vanilla/modal-base.ts +++ b/lib/modal/src/vanilla/modal-base.ts @@ -93,14 +93,14 @@ export class ModalBase extends Co this.on('hidden', () => { if (!ModalBase.getAll().some((modal) => modal.shown)) { - $('html,body').enableScroll(); + $('html').enableScroll(); } }); this.on('show', () => { - $('html,body').disableScroll(); + $('html').disableScroll(); }); if (this.shown) { - $('html,body').disableScroll(); + $('html').disableScroll(); } }