T
TanStack12mo ago
correct-apricot

Anybody having issues with getting the header to stick?

For some reason the TableHeader won't stick even though the table has a height to it. Getting confused. Been trying a bunch of different stuff.
<ScrollArea
className="h-full"
style={{
height: containerHeight + 65 + "px",
}}
>
<ShadcnTable.Table
className="h-full"
style={{
height: containerHeight + 65 + "px",
}}
>
<ShadcnTable.TableHeader className="sticky left-0 top-0">
{table.getHeaderGroups().map((headerGroup) => (
<ScrollArea
className="h-full"
style={{
height: containerHeight + 65 + "px",
}}
>
<ShadcnTable.Table
className="h-full"
style={{
height: containerHeight + 65 + "px",
}}
>
<ShadcnTable.TableHeader className="sticky left-0 top-0">
{table.getHeaderGroups().map((headerGroup) => (
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?