fix: prevent context menu clicks from clearing file selection (#5681)

This commit is contained in:
Andy
2026-01-17 14:57:01 -07:00
committed by GitHub
parent 037e29a708
commit 59ca0c340a

View File

@@ -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 = [];
};
</script>