mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +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>
|
<th scope="col"></th>
|
||||||
{:else}
|
{:else}
|
||||||
<TableHeader
|
<TableHeader
|
||||||
|
id="{header.key}"
|
||||||
disableSorting="{header.sort === false}"
|
disableSorting="{header.sort === false}"
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
dispatch('click', { header });
|
dispatch('click', { header });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue