Don't allow row selection for button/link column
This commit is contained in:
parent
c4724a597f
commit
c6c2e5d972
|
@ -344,11 +344,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{#if sortedRows?.length}
|
{#if sortedRows?.length}
|
||||||
{#each sortedRows as row, idx}
|
{#each sortedRows as row, idx}
|
||||||
<div
|
<div class="spectrum-Table-row">
|
||||||
class="spectrum-Table-row"
|
|
||||||
on:click={() => dispatch("click", row)}
|
|
||||||
on:click={() => toggleSelectRow(row)}
|
|
||||||
>
|
|
||||||
{#if showEditColumn}
|
{#if showEditColumn}
|
||||||
<div
|
<div
|
||||||
class="spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit"
|
class="spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit"
|
||||||
|
@ -373,6 +369,16 @@
|
||||||
class="spectrum-Table-cell"
|
class="spectrum-Table-cell"
|
||||||
class:spectrum-Table-cell--divider={!!schema[field].divider}
|
class:spectrum-Table-cell--divider={!!schema[field].divider}
|
||||||
style={cellStyles[field]}
|
style={cellStyles[field]}
|
||||||
|
on:click={() => {
|
||||||
|
if (!field.startsWith("custom-")) {
|
||||||
|
dispatch("click", row)
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
on:click={() => {
|
||||||
|
if (!field.startsWith("custom-")) {
|
||||||
|
toggleSelectRow(row)
|
||||||
|
}
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<CellRenderer
|
<CellRenderer
|
||||||
{customRenderers}
|
{customRenderers}
|
||||||
|
|
Loading…
Reference in New Issue