@linzjs/step-ag-grid 7.11.7 → 7.11.8
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 +7 -5
- package/dist/index.js.map +1 -1
- package/dist/step-ag-grid.esm.js +8 -6
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Grid.tsx +2 -2
- package/src/components/gridHeader/GridHeaderSelect.tsx +3 -3
- package/src/contexts/GridContextProvider.tsx +4 -2
package/dist/index.js
CHANGED
|
@@ -2174,7 +2174,9 @@ var GridContextProvider = function (props) {
|
|
|
2174
2174
|
var rowIndex_1 = firstNode.rowIndex;
|
|
2175
2175
|
if (rowIndex_1 != null && col != null) {
|
|
2176
2176
|
var colId_1 = col.colId;
|
|
2177
|
-
|
|
2177
|
+
// We need to make sure we aren't currently editing a cell otherwise tests will fail
|
|
2178
|
+
// as they will start to edit the cell before this stuff has a chance to run
|
|
2179
|
+
colId_1 != null && lodashEs.defer(function () { return lodashEs.isEmpty(gridApi.getEditingCells()) && gridApi.setFocusedCell(rowIndex_1, colId_1); });
|
|
2178
2180
|
}
|
|
2179
2181
|
}
|
|
2180
2182
|
}
|
|
@@ -2700,9 +2702,9 @@ var GridHeaderSelect = function (_a) {
|
|
|
2700
2702
|
// This is used to force an update on selection change
|
|
2701
2703
|
var _b = React.useState(0), updateCounter = _b[0], setUpdateCounter = _b[1];
|
|
2702
2704
|
var selectedNodeCount = api.getSelectedRows().length;
|
|
2703
|
-
var clickHandler = function () {
|
|
2705
|
+
var clickHandler = React.useCallback(function () {
|
|
2704
2706
|
setUpdateCounter(updateCounter + 1);
|
|
2705
|
-
};
|
|
2707
|
+
}, [updateCounter]);
|
|
2706
2708
|
React.useEffect(function () {
|
|
2707
2709
|
api.addEventListener("selectionChanged", clickHandler);
|
|
2708
2710
|
return function () { return api.removeEventListener("selectionChanged", clickHandler); };
|
|
@@ -2853,9 +2855,9 @@ var Grid = function (params) {
|
|
|
2853
2855
|
else {
|
|
2854
2856
|
e.api.deselectAll();
|
|
2855
2857
|
}
|
|
2856
|
-
return
|
|
2858
|
+
return true;
|
|
2857
2859
|
}
|
|
2858
|
-
return
|
|
2860
|
+
return false;
|
|
2859
2861
|
},
|
|
2860
2862
|
onCellClicked: clickSelectorCheckboxWhenContainingCellClicked
|
|
2861
2863
|
}
|