using preventSelectRow property
This commit is contained in:
parent
543d2521e6
commit
2740b5502f
|
@ -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)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue