@linzjs/step-ag-grid 35.2.0 → 35.2.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.
@@ -66320,15 +66320,16 @@ const Grid = ({
66320
66320
  return r;
66321
66321
  };
66322
66322
  }
66323
+ const userWidth = userSizedColIds.current.get(colDef.colId ?? colDef.field ?? "");
66323
66324
  const adjustedColDef = {
66324
66325
  ...colDef,
66325
- // You cannot pass a width to a flex
66326
- width: colDef.flex ? void 0 : colDef.width,
66326
+ // Flex columns ignore width, so only a user-sized (no longer flex) column gets one
66327
+ width: userWidth ?? (colDef.flex ? void 0 : colDef.width),
66327
66328
  ...!!colDef.flex && { flexAutoSizeWidth: colDef.width },
66328
66329
  // If this is allowed flex columns don't size based on flex
66329
66330
  suppressSizeToFit: true,
66330
66331
  // Auto-sizing flex columns breaks everything
66331
- flex,
66332
+ flex: userWidth != null ? void 0 : flex,
66332
66333
  suppressAutoSize: !!flex,
66333
66334
  sortable,
66334
66335
  comparator
@@ -66718,15 +66719,16 @@ const GridPopoverContextProvider = (props2) => {
66718
66719
  );
66719
66720
  const field = props.colDef?.field ?? "";
66720
66721
  const colId = props.colDef?.colId ?? field ?? "";
66722
+ const updatingKey = props.colDef?.field ?? props.colDef?.colId ?? "";
66721
66723
  const updateValue = React14.useCallback(
66722
66724
  async (saveFn, tabDirection) => {
66723
66725
  if (hasSaved.current) {
66724
66726
  return true;
66725
66727
  }
66726
66728
  hasSaved.current = true;
66727
- return saving ? false : await updatingCells({ selectedRows, field }, saveFn, setSaving, tabDirection);
66729
+ return saving ? false : await updatingCells({ selectedRows, field: updatingKey }, saveFn, setSaving, tabDirection);
66728
66730
  },
66729
- [field, saving, selectedRows, updatingCells]
66731
+ [saving, selectedRows, updatingCells, updatingKey]
66730
66732
  );
66731
66733
  return /* @__PURE__ */ jsxRuntime.jsx(
66732
66734
  GridPopoverContext.Provider,