@linzjs/step-ag-grid 35.2.0 → 35.2.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
@@ -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": "35.2.0",
5
+ "version": "35.2.1",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -31,6 +31,9 @@ export const GridPopoverContextProvider = (props2: PropsWithChildren<GridPopover
31
31
 
32
32
  const field = props.colDef?.field ?? '';
33
33
  const colId = props.colDef?.colId ?? field ?? '';
34
+ // Must match the key GridCellRenderer uses in checkUpdating, otherwise columns without a field
35
+ // (e.g. action menus) never show the updating spinner
36
+ const updatingKey = props.colDef?.field ?? props.colDef?.colId ?? '';
34
37
 
35
38
  const updateValue = useCallback(
36
39
  async (saveFn: (selectedRows: any[]) => Promise<boolean>, tabDirection: 1 | 0 | -1): Promise<boolean> => {
@@ -39,9 +42,11 @@ export const GridPopoverContextProvider = (props2: PropsWithChildren<GridPopover
39
42
  return true;
40
43
  }
41
44
  hasSaved.current = true;
42
- return saving ? false : await updatingCells({ selectedRows, field }, saveFn, setSaving, tabDirection);
45
+ return saving
46
+ ? false
47
+ : await updatingCells({ selectedRows, field: updatingKey }, saveFn, setSaving, tabDirection);
43
48
  },
44
- [field, saving, selectedRows, updatingCells],
49
+ [saving, selectedRows, updatingCells, updatingKey],
45
50
  );
46
51
 
47
52
  return (