From cf966578d8c6beab111b74f495bac6bdec173f41 Mon Sep 17 00:00:00 2001 From: Ariel Leyva Date: Sat, 13 Dec 2025 03:09:05 -0500 Subject: [PATCH] fix: hide the context menu when changing the route (#5613) --- frontend/src/views/files/FileListing.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/files/FileListing.vue b/frontend/src/views/files/FileListing.vue index e981b76b..409c78aa 100644 --- a/frontend/src/views/files/FileListing.vue +++ b/frontend/src/views/files/FileListing.vue @@ -356,7 +356,7 @@ import { ref, watch, } from "vue"; -import { useRoute } from "vue-router"; +import { useRoute, onBeforeRouteUpdate } from "vue-router"; import { useI18n } from "vue-i18n"; import { storeToRefs } from "pinia"; import { removePrefix } from "@/api/utils"; @@ -379,6 +379,9 @@ const layoutStore = useLayoutStore(); const { req } = storeToRefs(fileStore); const route = useRoute(); +onBeforeRouteUpdate(() => { + hideContextMenu(); +}); const { t } = useI18n();