fix(data-table): avoid triggering click:row when clicking expandable row chevron

Fixes #889
This commit is contained in:
Eric Liu 2021-11-06 10:25:06 -07:00
commit 6abb138a99

View file

@ -363,7 +363,7 @@
aria-label="{expandedRows[row.id]
? 'Collapse current row'
: 'Expand current row'}"
on:click="{() => {
on:click|stopPropagation="{() => {
const rowExpanded = !!expandedRows[row.id];
expandedRowIds = rowExpanded