kopia lustrzana https://github.com/cheeaun/phanpy
Close menu when trigger shortcut
rodzic
8428ca232c
commit
91ee0da8ef
|
@ -54,6 +54,7 @@ function Shortcuts() {
|
||||||
const { path } = formattedShortcuts[index];
|
const { path } = formattedShortcuts[index];
|
||||||
if (path) {
|
if (path) {
|
||||||
navigate(path);
|
navigate(path);
|
||||||
|
menuRef.current?.closeMenu?.();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue