1
0
Fork 0
mirror of synced 2024-06-03 02:55:14 +12:00

using preventSelectRow property

This commit is contained in:
Mel O'Hagan 2022-06-07 15:19:48 +01:00
parent 543d2521e6
commit 2740b5502f

View file

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