Skip to content

Commit

Permalink
feat: disable scroll lock for Popover and Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo committed Sep 27, 2023
1 parent 287d16a commit 827d913
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/shared/theme/src/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export const theme = extendTheme({
MuiDialog: {
defaultProps: {
transitionDuration: 0,
disableScrollLock: true,
},
},
MuiFormControl: {
Expand Down Expand Up @@ -363,6 +364,7 @@ export const theme = extendTheme({
MuiPopover: {
defaultProps: {
transitionDuration: 0,
disableScrollLock: true,
},
styleOverrides: {
root: ({ theme }) => ({
Expand Down

0 comments on commit 827d913

Please sign in to comment.