From d86023facd3befa2383364c625af20e4851cd510 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 22 Mar 2023 14:11:38 +0800 Subject: [PATCH] Fix submenu not opening --- src/components/account-info.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index 9f7c3695..87d45191 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -536,8 +536,10 @@ function RelatedActions({ info, instance, authenticated }) { // Higher than the backdrop zIndex: 1001, }, - onClick: () => { - menuInstanceRef.current?.closeMenu?.(); + onClick: (e) => { + if (e.target === e.currentTarget) { + menuInstanceRef.current?.closeMenu?.(); + } }, }} align="center"