From 02f96d1d535f5fef05114ea8dad4bd64a5550cbb Mon Sep 17 00:00:00 2001 From: ArielLeyva Date: Sat, 3 Jan 2026 19:32:34 -0500 Subject: [PATCH] fix: clear selection by clicking on empty area --- frontend/src/views/files/FileListing.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/views/files/FileListing.vue b/frontend/src/views/files/FileListing.vue index 409c78aa..07a3cdcc 100644 --- a/frontend/src/views/files/FileListing.vue +++ b/frontend/src/views/files/FileListing.vue @@ -159,6 +159,7 @@ ref="listing" class="file-icons" :class="authStore.user?.viewMode ?? ''" + @click="handleEmptyAreaClick" >
@@ -1051,4 +1052,15 @@ const showContextMenu = (event: MouseEvent) => { const hideContextMenu = () => { isContextMenuVisible.value = false; }; + +const handleEmptyAreaClick = (e: MouseEvent) => { + if (e.target.closest("item") || e.target.closest(".item")) return; + + fileStore.selected = []; +}; +