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:
committed by
Facebook Github Bot
parent
7bd264bd10
commit
2596e7d42a
@@ -180,7 +180,7 @@ class ManagedTable extends React.Component<
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
nextProps.filter !== this.props.filter &&
|
this.props.rows.length > nextProps.rows.length &&
|
||||||
this.tableRef &&
|
this.tableRef &&
|
||||||
this.tableRef.current
|
this.tableRef.current
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user