fix: prevent context menu clicks from clearing file selection (#5681)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user