From 91ee0da8efa2cc1df5b9c8793060517656cd5c8e Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 19 Feb 2023 22:07:15 +0800 Subject: [PATCH] Close menu when trigger shortcut --- src/components/shortcuts.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/shortcuts.jsx b/src/components/shortcuts.jsx index 6e14e661..b7cf35ed 100644 --- a/src/components/shortcuts.jsx +++ b/src/components/shortcuts.jsx @@ -54,6 +54,7 @@ function Shortcuts() { const { path } = formattedShortcuts[index]; if (path) { navigate(path); + menuRef.current?.closeMenu?.(); } } });