Skip to content

Commit 8a3ee08

Browse files
committed
fix: resolve no date header width when sticky
1 parent f743139 commit 8a3ee08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,11 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
515515
if (fixColumn) {
516516
return scroll.x === 'max-content' ? 'auto' : 'fixed';
517517
}
518-
if (fixHeader || flattenColumns.some(({ ellipsis }) => ellipsis)) {
518+
if (fixHeader || isSticky || flattenColumns.some(({ ellipsis }) => ellipsis)) {
519519
return 'fixed';
520520
}
521521
return 'auto';
522-
}, [fixHeader, fixColumn, flattenColumns, tableLayout]);
522+
}, [fixHeader, fixColumn, flattenColumns, tableLayout, isSticky]);
523523

524524
let groupTableNode: React.ReactNode;
525525

0 commit comments

Comments
 (0)