[MA-7]: Fixed submenu pointer event and failing playwright test cases

This commit is contained in:
ayush-chauhan233
2025-02-14 14:18:25 +05:30
parent 9b42628862
commit 80252f9cc5
2 changed files with 2 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
box-shadow: var(--elevation-4), 0 0 0 1px rgba(var(--center-channel-color-rgb), 0.12) inset; box-shadow: var(--elevation-4), 0 0 0 1px rgba(var(--center-channel-color-rgb), 0.12) inset;
} }
&.AsSubMenu { &.AsSubMenu {
pointer-events: none;
& .MuiPaper-root { & .MuiPaper-root {
box-shadow: var(--elevation-5), 0 0 0 1px rgba(var(--center-channel-color-rgb), 0.12) inset; box-shadow: var(--elevation-5), 0 0 0 1px rgba(var(--center-channel-color-rgb), 0.12) inset;
} }

View File

@@ -189,6 +189,7 @@ export function SubMenu(props: Props) {
autoFocusItem={isSubMenuOpen} autoFocusItem={isSubMenuOpen}
sx={{ sx={{
py: 0, py: 0,
pointerEvents: 'auto',
}} }}
> >
{children} {children}