1
0
Fork 0
mirror of synced 2024-07-05 06:20:55 +12: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 ae2148e481
commit 99fda23771

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}