@linzjs/step-ag-grid 8.3.0 → 8.3.1
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
package/src/components/Grid.tsx
CHANGED
|
@@ -182,7 +182,7 @@ export const Grid = (params: GridProps): JSX.Element => {
|
|
|
182
182
|
const columnDefs = useMemo((): ColDef[] => {
|
|
183
183
|
const adjustColDefs = params.columnDefs.map((colDef) => {
|
|
184
184
|
const colDefEditable = colDef.editable;
|
|
185
|
-
const editable = combineEditables(params.readOnly !==
|
|
185
|
+
const editable = combineEditables(params.readOnly !== true, params.defaultColDef?.editable, colDefEditable);
|
|
186
186
|
return {
|
|
187
187
|
...colDef,
|
|
188
188
|
editable,
|
|
@@ -97,6 +97,7 @@ const GridReadOnlyTemplate: ComponentStory<typeof Grid> = (props: GridProps) =>
|
|
|
97
97
|
<Grid
|
|
98
98
|
data-testid={"bearingsTestTable"}
|
|
99
99
|
{...props}
|
|
100
|
+
readOnly={false}
|
|
100
101
|
externalSelectedItems={externalSelectedItems}
|
|
101
102
|
setExternalSelectedItems={setExternalSelectedItems}
|
|
102
103
|
columnDefs={columnDefs}
|