@linzjs/step-ag-grid 7.19.3 → 7.19.5

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": "7.19.3",
5
+ "version": "7.19.5",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -170,8 +170,8 @@ export const GridFormMultiSelect = <RowType extends GridBaseRow>(props: GridForm
170
170
  const subOptions = headerGroups[`${header.filter}`];
171
171
  return (
172
172
  !isEmpty(subOptions) && (
173
- <>
174
- {header.header && <MenuHeader key={`header_${index}`}>{header.header}</MenuHeader>}
173
+ <Fragment key={`group_${index}`}>
174
+ {header.header && <MenuHeader>{header.header}</MenuHeader>}
175
175
  {subOptions.map((item, index) =>
176
176
  item.value === MenuSeparatorString ? (
177
177
  <MenuDivider key={`div_${index}`} />
@@ -188,7 +188,7 @@ export const GridFormMultiSelect = <RowType extends GridBaseRow>(props: GridForm
188
188
  </Fragment>
189
189
  ),
190
190
  )}
191
- </>
191
+ </Fragment>
192
192
  )
193
193
  );
194
194
  })}
@@ -8,7 +8,12 @@ export const countRows = async (within?: HTMLElement): Promise<number> => {
8
8
  };
9
9
 
10
10
  export const findRow = async (rowId: number | string, within?: HTMLElement): Promise<HTMLDivElement> => {
11
- return findQuick<HTMLDivElement>({ tagName: `div[row-id='${rowId}']:not(:empty)` }, within);
11
+ //if this is not wrapped in an act console errors are logged during testing
12
+ let row!: HTMLDivElement;
13
+ await act(async () => {
14
+ row = await findQuick<HTMLDivElement>({ tagName: `div[row-id='${rowId}']:not(:empty)` }, within);
15
+ });
16
+ return row;
12
17
  };
13
18
 
14
19
  export const queryRow = async (rowId: number | string, within?: HTMLElement): Promise<HTMLDivElement | null> => {