@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/dist/step-ag-grid.cjs
CHANGED
|
@@ -66718,15 +66718,16 @@ const GridPopoverContextProvider = (props2) => {
|
|
|
66718
66718
|
);
|
|
66719
66719
|
const field = props.colDef?.field ?? "";
|
|
66720
66720
|
const colId = props.colDef?.colId ?? field ?? "";
|
|
66721
|
+
const updatingKey = props.colDef?.field ?? props.colDef?.colId ?? "";
|
|
66721
66722
|
const updateValue = React14.useCallback(
|
|
66722
66723
|
async (saveFn, tabDirection) => {
|
|
66723
66724
|
if (hasSaved.current) {
|
|
66724
66725
|
return true;
|
|
66725
66726
|
}
|
|
66726
66727
|
hasSaved.current = true;
|
|
66727
|
-
return saving ? false : await updatingCells({ selectedRows, field }, saveFn, setSaving, tabDirection);
|
|
66728
|
+
return saving ? false : await updatingCells({ selectedRows, field: updatingKey }, saveFn, setSaving, tabDirection);
|
|
66728
66729
|
},
|
|
66729
|
-
[
|
|
66730
|
+
[saving, selectedRows, updatingCells, updatingKey]
|
|
66730
66731
|
);
|
|
66731
66732
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
66732
66733
|
GridPopoverContext.Provider,
|