diff --git a/packages/ibm-products/src/components/Datagrid/Datagrid/DatagridVirtualBody.tsx b/packages/ibm-products/src/components/Datagrid/Datagrid/DatagridVirtualBody.tsx index 436e6d8864..9e62360e13 100644 --- a/packages/ibm-products/src/components/Datagrid/Datagrid/DatagridVirtualBody.tsx +++ b/packages/ibm-products/src/components/Datagrid/Datagrid/DatagridVirtualBody.tsx @@ -66,7 +66,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);