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

Fixes #889
This commit is contained in:
Eric Liu 2021-11-06 10:33:33 -07:00 committed by GitHub
commit b3a73cf80c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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