using preventSelectRow property

This commit is contained in:
Mel O'Hagan 2022-06-07 15:19:48 +01:00
parent 6dbd7d3785
commit bc6cca2cf2
1 changed files with 1 additions and 5 deletions

View File

@ -370,12 +370,8 @@
class:spectrum-Table-cell--divider={!!schema[field].divider} class:spectrum-Table-cell--divider={!!schema[field].divider}
style={cellStyles[field]} style={cellStyles[field]}
on:click={() => { on:click={() => {
if (!field.startsWith("custom-")) { if (!schema[field]?.preventSelectRow) {
dispatch("click", row) dispatch("click", row)
}
}}
on:click={() => {
if (!field.startsWith("custom-")) {
toggleSelectRow(row) toggleSelectRow(row)
} }
}} }}