Skip to content

Commit

Permalink
Prevent uselessly changing into same document
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Dec 21, 2023
1 parent 55cc34e commit 947dde9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/ItemList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
class="pl-1 grid grid-cols-24 w-full {$settings.listSize} hover:!variant-ghost-primary focus:!variant-ghost-primary"
class:!variant-soft-primary={selected === item}
class:active={selected === item}
on:click={() => (selected = item)}
on:click={() => (selected !== item ? (selected = item) : null)}
>
{#each columns
.filter((col) => col.enabled)
Expand Down

0 comments on commit 947dde9

Please sign in to comment.