diff --git a/src/modal/modal.ts b/src/modal/modal.ts index 2f7cfc6..fd4cf19 100644 --- a/src/modal/modal.ts +++ b/src/modal/modal.ts @@ -42,6 +42,7 @@ export default class ModalElement extends HTMLElement { this.focusTrap = createFocusTrap(this, { escapeDeactivates: false, allowOutsideClick: true, + preventScroll: true, }); }