diff --git a/packages/eui/changelogs/upcoming/8251.md b/packages/eui/changelogs/upcoming/8251.md new file mode 100644 index 00000000000..5f9b0fd86cd --- /dev/null +++ b/packages/eui/changelogs/upcoming/8251.md @@ -0,0 +1,4 @@ +**Bug fixes** + +- Fixed an issue with EuiDataGrid with auto row height resulting in a table of 0 height + diff --git a/packages/eui/src/components/datagrid/utils/grid_height_width.ts b/packages/eui/src/components/datagrid/utils/grid_height_width.ts index 686acc38323..144c06195e0 100644 --- a/packages/eui/src/components/datagrid/utils/grid_height_width.ts +++ b/packages/eui/src/components/datagrid/utils/grid_height_width.ts @@ -134,7 +134,7 @@ export const useUnconstrainedHeight = ({ rowHeightsOptions ); - if (rowHeightOption) { + if (rowHeightOption && rowHeightOption !== 'auto') { // this row's height is known knownRowCount++; knownHeight += rowHeightUtils.getCalculatedHeight(