1
0
Fork 0
mirror of synced 2024-10-03 10:36:59 +13:00

adds a click dispatch to the Table component

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-07 14:52:46 +02:00
parent b0e20eddc3
commit 8607127a0b

View file

@ -272,6 +272,7 @@
{#if sortedRows?.length}
{#each sortedRows as row, idx}
<tr
on:click={() => dispatch("click", row)}
on:click={() => toggleSelectRow(row)}
class="spectrum-Table-row"
class:hidden={idx < firstVisibleRow || idx > lastVisibleRow}