@linzjs/step-ag-grid 2.4.9 → 2.4.10

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": "2.4.9",
5
+ "version": "2.4.10",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -261,9 +261,15 @@ export const GridFormDropDown = <RowType extends GridBaseRow, ValueType>(
261
261
  ({ optionValue }) => optionValue === item.value,
262
262
  );
263
263
  if ((key === "Enter" || key === "Tab") && subComponentItem) {
264
- selectItemHandler(item.value as ValueType, subComponentItem.subComponentValue);
265
- ref.closeMenu();
264
+ return selectItemHandler(
265
+ item.value as ValueType,
266
+ subComponentItem.subComponentValue,
267
+ ).then(() => {
268
+ ref.closeMenu();
269
+ return true;
270
+ });
266
271
  }
272
+ return false;
267
273
  },
268
274
  key: `${props.field}-${index}_subcomponent_inner`,
269
275
  },
@@ -27,6 +27,8 @@ export const GridFormSubComponentTextInput = ({
27
27
  style={{
28
28
  display: "flex",
29
29
  flexDirection: "column",
30
+ width: "100%",
31
+ padding: 0,
30
32
  }}
31
33
  >
32
34
  <TextInputFormatted
@@ -52,7 +54,7 @@ export const GridFormSubComponentTextInput = ({
52
54
  />
53
55
  <span
54
56
  style={{
55
- fontSize: "0.75rem",
57
+ fontSize: "0.7rem",
56
58
  }}
57
59
  >
58
60
  {helpText}