Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: closing the location menu on opening new app window

Ilian Sapundshieva8c1c6dee5c9
diff --git a/app/components/menus/LocationContextMenu.tsx b/app/components/menus/LocationContextMenu.tsx
index a438cc2a4..fabbfd50f 100644
--- a/app/components/menus/LocationContextMenu.tsx
+++ b/app/components/menus/LocationContextMenu.tsx
@@ -140,6 +140,7 @@ function LocationContextMenu(props: Props) {
};
const openInNewWindow = () => {
+ setLocationDirectoryContextMenuAnchorEl(null);
const sharingLink = generateSharingLink(selectedLocation.uuid);
PlatformIO.createNewInstance(
window.location.href.split('?')[0] + '?' + sharingLink.split('?')[1]