Skip to content

Commit 15812ae

Browse files
committed
fix: TableHead add tr tag
1 parent a47f368 commit 15812ae

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/lib/table/TableHead.svelte

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
{#if headerSlot}
2626
{@render headerSlot()}
2727
{/if}
28-
{#each headItems as item}
29-
<TableHeadCell>
30-
{getItemText(item)}
31-
</TableHeadCell>
32-
{/each}
28+
<tr>
29+
{#each headItems as item}
30+
<TableHeadCell>
31+
{getItemText(item)}
32+
</TableHeadCell>
33+
{/each}
34+
</tr>
3335
{:else if children}
3436
{#if defaultRow}
3537
<tr>

0 commit comments

Comments
 (0)