adds a click dispatch to the Table component
This commit is contained in:
parent
ae2148e481
commit
99fda23771
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue