Skip to content

Commit 2730f29

Browse files
committed
Fix warning about missing data-index
1 parent 7f2cbf4 commit 2730f29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/lib/components/VirtualList.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
{#each vitems as row, idx (row.index)}
4646
<div
4747
bind:this={virtualItemEls[idx]}
48-
class="overflow-hidden {itemClass}">
48+
class="overflow-hidden {itemClass}"
49+
data-index={row.index}>
4950
<slot item={items[row.index]}>Missing template</slot>
5051
</div>
5152
{/each}

0 commit comments

Comments
 (0)