Skip to content

Commit f2a7f28

Browse files
authored
fix: resolve no date header width when sticky (#564)
1 parent f743139 commit f2a7f28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)