From 891d6c6b0309a16f338ef598145f52a0a5dc15b4 Mon Sep 17 00:00:00 2001 From: Andy Bodnar Date: Sat, 10 Jan 2026 13:39:41 -0700 Subject: [PATCH] fix: prevent context menu clicks from clearing file selection Right-clicking on a file and selecting Share or Rename would clear the selection before the action could be performed, because the click handler was treating context menu clicks as regular clicks. Added early return when clicking inside .context-menu to preserve the file selection during context menu interactions. Fixes #5680 --- 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 = []; };