Skip to content

Commit 434a00c

Browse files
committed
Added True Scroll Disable
Signed-off-by: SplinterSword <sparshj2003@gmail.com>
1 parent 89a661b commit 434a00c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/theme/components/menu.modifier.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@ import { Components, Theme } from '@mui/material';
22

33
export const MuiMenu: Components<Theme>['MuiMenu'] = {
44
defaultProps: {
5-
disableScrollLock: true
5+
disableScrollLock: true,
6+
7+
slotProps: {
8+
transition: {
9+
onEnter: () => {
10+
document.documentElement.style.overflow = "hidden";
11+
},
12+
onExited: () => {
13+
document.documentElement.style.overflow = "";
14+
}
15+
}
16+
}
617
},
718
styleOverrides: {
819
paper: {

0 commit comments

Comments
 (0)