Skip to content

Commit b744489

Browse files
committed
Fix filters being occluded if sticky
1 parent c5bea9c commit b744489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/Table/TableContent.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@
445445
id="{tableId}-table"
446446
>
447447
<!-- If table height is provided, making the top row sticky -->
448-
<thead class=" {height != null ? `sticky top-0` : ''}">
448+
<thead class={height != null && $pageRows.length > 0 ? `sticky top-0` : ''}>
449449
<!-- {#if $data.length > 0} -->
450450
{#each $headerRows as headerRow (headerRow.id)}
451451
<Subscribe

0 commit comments

Comments
 (0)