recalculate row heights on change

Summary: When table rows are chaning, we need to recaluculate all row heights. This was already done when filtering/searching, but there are other occurrences where we need to recalculate the heights (like clearing the table).

Reviewed By: passy

Differential Revision: D9540881

fbshipit-source-id: ef6e94c0330294d8196f946799a436aa5e9ce5c5
This commit is contained in:
Daniel Büchele
2018-08-28 10:19:44 -07:00
committed by Facebook Github Bot
parent 7bd264bd10
commit 2596e7d42a

View File

@@ -180,7 +180,7 @@ class ManagedTable extends React.Component<
}
if (
nextProps.filter !== this.props.filter &&
this.props.rows.length > nextProps.rows.length &&
this.tableRef &&
this.tableRef.current
) {