@linzjs/step-ag-grid 7.19.4 → 7.19.6

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.4",
5
+ "version": "7.19.6",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -50,16 +50,13 @@ export const GridFormTextInput = <RowType extends GridBaseRow>(props: GridFormTe
50
50
  });
51
51
 
52
52
  return popoverWrapper(
53
- <div
54
- style={{ display: "flex", flexDirection: "row", width: props.width ?? 240 }}
55
- className={"FormTest subComponent"}
56
- >
53
+ <div style={{ display: "flex", flexDirection: "row" }} className={"FormTest subComponent"}>
57
54
  <TextInputFormatted
58
55
  value={value}
59
56
  onChange={(e) => setValue(e.target.value)}
60
57
  error={invalid()}
61
58
  formatted={props.units}
62
- style={{ width: "100%" }}
59
+ style={{ width: props.width ?? 240 }}
63
60
  placeholder={props.placeholder}
64
61
  helpText={helpText}
65
62
  />
@@ -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> => {