@linzjs/step-ag-grid 10.0.1 → 10.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "10.0.1",
5
+ "version": "10.0.2",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -316,6 +316,11 @@ export const Grid = (params: GridProps): JSX.Element => {
316
316
  }
317
317
  }, [columnDefs?.length, sizeColumnsToFit]);
318
318
 
319
+ const defaultColDef = useMemo(
320
+ () => ({ wrapHeaderText: true, autoHeaderHeight: true, ...params.defaultColDef }),
321
+ [params.defaultColDef],
322
+ );
323
+
319
324
  return (
320
325
  <div
321
326
  data-testid={params["data-testid"]}
@@ -344,7 +349,7 @@ export const Grid = (params: GridProps): JSX.Element => {
344
349
  <AgGridReact
345
350
  animateRows={params.animateRows}
346
351
  rowClassRules={params.rowClassRules}
347
- defaultColDef={params.defaultColDef}
352
+ defaultColDef={defaultColDef}
348
353
  getRowId={(params) => `${params.data.id}`}
349
354
  suppressRowClickSelection={true}
350
355
  rowSelection={params.rowSelection ?? "multiple"}