From 3cc710e7aa710e2e5148fdc6d7c7d7d71724c002 Mon Sep 17 00:00:00 2001 From: ayush-chauhan233 Date: Fri, 14 Feb 2025 13:51:35 +0530 Subject: [PATCH] [MM-62961]: Fixed pointer event of submenu --- webapp/channels/src/components/menu/menu.scss | 1 + webapp/channels/src/components/menu/sub_menu.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/webapp/channels/src/components/menu/menu.scss b/webapp/channels/src/components/menu/menu.scss index 53de423019..6ce7ca7813 100644 --- a/webapp/channels/src/components/menu/menu.scss +++ b/webapp/channels/src/components/menu/menu.scss @@ -12,6 +12,7 @@ box-shadow: var(--elevation-4), 0 0 0 1px rgba(var(--center-channel-color-rgb), 0.12) inset; } &.AsSubMenu { + pointer-events: none; & .MuiPaper-root { box-shadow: var(--elevation-5), 0 0 0 1px rgba(var(--center-channel-color-rgb), 0.12) inset; } diff --git a/webapp/channels/src/components/menu/sub_menu.tsx b/webapp/channels/src/components/menu/sub_menu.tsx index 1fb001f43f..3bf0738a58 100644 --- a/webapp/channels/src/components/menu/sub_menu.tsx +++ b/webapp/channels/src/components/menu/sub_menu.tsx @@ -189,6 +189,7 @@ export function SubMenu(props: Props) { autoFocusItem={isSubMenuOpen} sx={{ py: 0, + pointerEvents: 'auto', }} > {children}