Skip to content

Commit

Permalink
fix(modal): hide overflow when modal is opened automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
skhamvon authored and dpellier committed Jan 18, 2024
1 parent cbf47f8 commit 16d236c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export class OsdsModal implements OdsModalAttribute, OdsModalMethod, OdsModalEve
if (this.masked) {
return this.modal.close?.();
}
document.body.style.overflow = 'hidden';
return this.modal.showModal?.();
}

Expand Down

0 comments on commit 16d236c

Please sign in to comment.