@linzjs/step-ag-grid 17.4.8 → 17.4.9

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
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "17.4.8",
5
+ "version": "17.4.9",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -28,15 +28,20 @@ export const findRow = async (rowId: number | string, within?: HTMLElement): Pro
28
28
  { tagName: `.ag-center-cols-container div[row-id='${rowId}']:not(:empty)` },
29
29
  within,
30
30
  );
31
- const leftCols = await findQuick<HTMLDivElement>(
31
+ let combineChildren = [...row.children];
32
+
33
+ const leftCols = queryQuick<HTMLDivElement>(
32
34
  { tagName: `.ag-pinned-left-cols-container div[row-id='${rowId}']` },
33
35
  within,
34
36
  );
35
- const rightCols = await findQuick<HTMLDivElement>(
37
+ if (leftCols) combineChildren = [...leftCols.children, ...combineChildren];
38
+
39
+ const rightCols = queryQuick<HTMLDivElement>(
36
40
  { tagName: `.ag-pinned-right-cols-container div[row-id='${rowId}']` },
37
41
  within,
38
42
  );
39
- const combineChildren = [...leftCols.children, ...row.children, ...rightCols.children];
43
+ if (rightCols) combineChildren = [...rightCols.children, ...combineChildren];
44
+
40
45
  row.replaceChildren(...combineChildren);
41
46
  });
42
47
  return row;