Skip to content

Commit

Permalink
fix: resolve no date header width when sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
shaodahong committed Dec 11, 2020
1 parent f743139 commit 8a3ee08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,11 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
if (fixColumn) {
return scroll.x === 'max-content' ? 'auto' : 'fixed';
}
if (fixHeader || flattenColumns.some(({ ellipsis }) => ellipsis)) {
if (fixHeader || isSticky || flattenColumns.some(({ ellipsis }) => ellipsis)) {
return 'fixed';
}
return 'auto';
}, [fixHeader, fixColumn, flattenColumns, tableLayout]);
}, [fixHeader, fixColumn, flattenColumns, tableLayout, isSticky]);

let groupTableNode: React.ReactNode;

Expand Down

0 comments on commit 8a3ee08

Please sign in to comment.