@linzjs/step-ag-grid 14.4.0 → 14.5.0
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
|
@@ -456,8 +456,9 @@ export const Grid = ({
|
|
|
456
456
|
columnDefs.map((colDef) => ({
|
|
457
457
|
...colDef,
|
|
458
458
|
suppressSizeToFit: (sizeColumns === "auto" || sizeColumns === "auto-skip-headers") && !colDef.flex,
|
|
459
|
+
sortable: colDef.sortable && params.defaultColDef?.sortable !== false,
|
|
459
460
|
})),
|
|
460
|
-
[columnDefs, sizeColumns],
|
|
461
|
+
[columnDefs, params.defaultColDef?.sortable, sizeColumns],
|
|
461
462
|
);
|
|
462
463
|
|
|
463
464
|
/**
|
|
@@ -384,19 +384,20 @@ export const GridContextProvider = <RowType extends GridBaseRow>(props: GridCont
|
|
|
384
384
|
const colDef = gridApi.getColumnDef(colId);
|
|
385
385
|
if (!colDef) return;
|
|
386
386
|
|
|
387
|
-
|
|
388
|
-
if (checkUpdating([colDef.field ?? ""], rowId)) {
|
|
389
|
-
return;
|
|
390
|
-
}
|
|
387
|
+
prePopupOps();
|
|
391
388
|
const rowNode = gridApi.getRowNode(`${rowId}`);
|
|
392
389
|
if (!rowNode) {
|
|
393
390
|
return;
|
|
394
391
|
}
|
|
395
392
|
|
|
396
393
|
if (!rowNode.isSelected()) {
|
|
397
|
-
rowNode.setSelected(true,
|
|
394
|
+
rowNode.setSelected(true, false);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// Cell already being edited, so don't re-edit until finished
|
|
398
|
+
if (checkUpdating([colDef.field ?? ""], rowId)) {
|
|
399
|
+
return;
|
|
398
400
|
}
|
|
399
|
-
prePopupOps();
|
|
400
401
|
|
|
401
402
|
const rowIndex = rowNode.rowIndex;
|
|
402
403
|
if (rowIndex != null) {
|