Skip to content

Commit

Permalink
fix(modal): prevent scroll on focus trap (de)activation
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Mar 13, 2023
1 parent fe87067 commit 4e09d5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modal/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default class ModalElement extends HTMLElement {
this.focusTrap = createFocusTrap(this, {
escapeDeactivates: false,
allowOutsideClick: true,
preventScroll: true,
});
}

Expand Down

0 comments on commit 4e09d5f

Please sign in to comment.