@linzjs/step-ag-grid 7.10.0 → 7.10.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/index.js
CHANGED
|
@@ -2830,7 +2830,12 @@ var Grid = function (params) {
|
|
|
2830
2830
|
if (!editAction)
|
|
2831
2831
|
return false;
|
|
2832
2832
|
var editable = fnOrVar((_c = e.colDef) === null || _c === void 0 ? void 0 : _c.editable, e);
|
|
2833
|
-
|
|
2833
|
+
if (editable) {
|
|
2834
|
+
if (!e.node.isSelected()) {
|
|
2835
|
+
e.node.setSelected(true, true);
|
|
2836
|
+
}
|
|
2837
|
+
editAction(__spreadArray([e.data], e.api.getSelectedRows().filter(function (row) { return row.id !== e.data.id; }), true));
|
|
2838
|
+
}
|
|
2834
2839
|
return true;
|
|
2835
2840
|
};
|
|
2836
2841
|
var onCellKeyPress = React.useCallback(function (e) {
|