Close menu when trigger shortcut

This commit is contained in:
Lim Chee Aun 2023-02-19 22:07:15 +08:00
parent 8428ca232c
commit 91ee0da8ef

View file

@ -54,6 +54,7 @@ function Shortcuts() {
const { path } = formattedShortcuts[index];
if (path) {
navigate(path);
menuRef.current?.closeMenu?.();
}
}
});