Skip to content

Commit

Permalink
fix(Table): allow cell overflow style to be overridden (#1424)
Browse files Browse the repository at this point in the history
fix #1423
  • Loading branch information
jedwards1211 authored and wuweiweiwu committed Oct 30, 2019
1 parent a390b2a commit 06af890
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion source/Table/Table.jest.js
Expand Up @@ -1099,7 +1099,7 @@ describe('Table', () => {
});

it('should use custom :styles if specified', () => {
const columnStyle = {backgroundColor: 'red'};
const columnStyle = {backgroundColor: 'red', overflow: 'visible'};
const headerStyle = {backgroundColor: 'blue'};
const columnHeaderStyle = {color: 'yellow'};
const rowStyle = {backgroundColor: 'green'};
Expand All @@ -1119,6 +1119,10 @@ describe('Table', () => {
node.querySelector('.ReactVirtualized__Table__rowColumn').style
.backgroundColor,
).toEqual('red');
expect(
node.querySelector('.ReactVirtualized__Table__rowColumn').style
.overflow,
).toEqual('visible');
expect(
node.querySelector('.ReactVirtualized__Table__headerColumn').style
.backgroundColor,
Expand Down
2 changes: 1 addition & 1 deletion source/Table/Table.js
Expand Up @@ -394,8 +394,8 @@ export default class Table extends React.PureComponent {
);

this._cachedColumnStyles[index] = {
...flexStyles,
overflow: 'hidden',
...flexStyles,
};
});

Expand Down

0 comments on commit 06af890

Please sign in to comment.