Skip to content

Commit

Permalink
🐛 improve Table scroll behavior when scroll.x is true
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Feb 26, 2020
1 parent e3ee199 commit 9d6f5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class BaseTable<ValueType> extends React.Component<BaseTableProps<ValueType>> {

if (!fixed && scroll.x) {
// not set width, then use content fixed width
tableStyle.width = scroll.x === true ? 'max-content' : scroll.x;
tableStyle.width = scroll.x === true ? 'auto' : scroll.x;
}

const Table = hasBody ? components.table : 'table';
Expand Down

0 comments on commit 9d6f5be

Please sign in to comment.