fix: resolve context menu submenu and move-to-folder issues (#19)

This commit is contained in:
Matthieu MALVACHE
2026-03-02 09:10:03 +01:00
committed by Matthieu MALVACHE
parent 92620fb790
commit 58b9b70871
8 changed files with 216 additions and 182 deletions
+4 -1
View File
@@ -92,7 +92,10 @@ export function useContextMenu<T>(): UseContextMenuReturn<T> {
}
};
const handleScroll = () => {
const handleScroll = (e: Event) => {
if (menuRef.current && e.target instanceof Node && menuRef.current.contains(e.target)) {
return;
}
closeContextMenu();
};