From bc6cca2cf29230c5b8e87e646e49feaf9389229c Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Tue, 7 Jun 2022 15:19:48 +0100 Subject: [PATCH] using preventSelectRow property --- packages/bbui/src/Table/Table.svelte | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte index 2a22236474..baa84c91e0 100644 --- a/packages/bbui/src/Table/Table.svelte +++ b/packages/bbui/src/Table/Table.svelte @@ -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) } }}