diff --git a/packages/ibm-products/src/components/Datagrid/Datagrid/DatagridVirtualBody.tsx b/packages/ibm-products/src/components/Datagrid/Datagrid/DatagridVirtualBody.tsx index 630b0c93b1..50a87ece88 100644 --- a/packages/ibm-products/src/components/Datagrid/Datagrid/DatagridVirtualBody.tsx +++ b/packages/ibm-products/src/components/Datagrid/Datagrid/DatagridVirtualBody.tsx @@ -70,7 +70,7 @@ const DatagridVirtualBody = (datagridState: DataGridState) => { if (listRef && listRef.current) { listRef.current.resetAfterIndex(0); } - }, [listRef]); + }, [listRef, rowHeight]); const visibleRows = ((DatagridPagination && page) || rows) as DatagridRow[]; const testRef: MutableRefObject = useRef(null);