Skip to content

Commit

Permalink
Merge pull request #276 from dcos-labs/mp/fix/dynamic-cellmeasure-res…
Browse files Browse the repository at this point in the history
…izing

fix: dynamic cell widths update with content changes
  • Loading branch information
natmegs authored Jan 16, 2019
2 parents 7523e44 + b148bca commit 300adc1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/table/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ export class Table<T> extends React.PureComponent<TableProps, TableState> {
};
}

public componentDidUpdate() {
this.cellMeasureCache.clearAll();
this.updateGridSize();
}

public render() {
return (
<AutoSizer
Expand Down

0 comments on commit 300adc1

Please sign in to comment.