From 2596e7d42a687fb387f016d5187b7842028ca066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Tue, 28 Aug 2018 10:19:44 -0700 Subject: [PATCH] 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 --- src/ui/components/table/ManagedTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/components/table/ManagedTable.js b/src/ui/components/table/ManagedTable.js index 2128c7b69..df7ac0171 100644 --- a/src/ui/components/table/ManagedTable.js +++ b/src/ui/components/table/ManagedTable.js @@ -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 ) {