Close menu when trigger shortcut

pull/54/head
Lim Chee Aun 2023-02-19 22:07:15 +08:00
rodzic 8428ca232c
commit 91ee0da8ef
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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