From 59ca0c340afc7774747c70ede9a5a5a3c9349d6b Mon Sep 17 00:00:00 2001 From: Andy <87505797+AndyBodnar@users.noreply.github.com> Date: Sat, 17 Jan 2026 14:57:01 -0700 Subject: [PATCH] fix: prevent context menu clicks from clearing file selection (#5681) --- frontend/src/views/files/FileListing.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/views/files/FileListing.vue b/frontend/src/views/files/FileListing.vue index 62a6819f..c9f636ba 100644 --- a/frontend/src/views/files/FileListing.vue +++ b/frontend/src/views/files/FileListing.vue @@ -1059,6 +1059,9 @@ const handleEmptyAreaClick = (e: MouseEvent) => { if (target.closest("item") || target.closest(".item")) return; + // Do not clear selection when clicking on context menu actions + if (target.closest(".context-menu")) return; + fileStore.selected = []; };