Skip to content

Commit

Permalink
Fix deselect file on browse files, when it is opened with file selected
Browse files Browse the repository at this point in the history
  • Loading branch information
lgmarchi committed Oct 4, 2024
1 parent e932ffd commit 1241801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/files/BrowseFiles.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
<!-- svelte-ignore a11y-no-static-element-interactions -->
{#each $files as item}
<!-- svelte-ignore a11y-click-events-have-key-events -->
{#key item.id && selectedItems.has(item)}
{#key item.id && Array.from(selectedItems).some(selectedItem => selectedItem.remotePath === item.remotePath)}
<div class="draggable-item {item.id} {item.type === 'folder' ? 'folder-draggable droppable' : ''}" draggable="true" data-id={item.id}>
{#if item.type === "file"}
<div class="item-with-checkbox" role="button" tabindex="0" on:click={() => toggleSelect(item)}>
Expand Down

0 comments on commit 1241801

Please sign in to comment.