From 56683e12c9e54c5191b56eaf923d316a274778db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?w=C5=AB=20y=C4=81ng?= Date: Tue, 19 Dec 2023 22:44:52 +0800 Subject: [PATCH] feat(Menu): close menu after clicking menu item (#3764) --- src/menu/menu-item.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/menu/menu-item.tsx b/src/menu/menu-item.tsx index 40f6ba4d8a..b064e2b9c6 100644 --- a/src/menu/menu-item.tsx +++ b/src/menu/menu-item.tsx @@ -43,6 +43,7 @@ export default defineComponent({ itemRef, href, target, + submenu, }; }, methods: { @@ -66,6 +67,7 @@ export default defineComponent({ } }); } + this.submenu?.closeParentPopup?.(e); }, }, render() {