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
1 changed files with 1 additions and 0 deletions

View File

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