mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(data-table): pass header key to TableHeader
(#1114)
The id is needed to update the sort icon direction accordingly. Fixes #1113
This commit is contained in:
parent
fe8fd65893
commit
dce0309bab
1 changed files with 1 additions and 0 deletions
|
@ -306,6 +306,7 @@
|
|||
<th scope="col"></th>
|
||||
{:else}
|
||||
<TableHeader
|
||||
id="{header.key}"
|
||||
disableSorting="{header.sort === false}"
|
||||
on:click="{() => {
|
||||
dispatch('click', { header });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue