@linzjs/step-ag-grid 4.0.0 → 4.0.1

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": "4.0.0",
5
+ "version": "4.0.1",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -47,9 +47,9 @@ export const GridFormSubComponentTextArea = (props: GridSubComponentTextAreaProp
47
47
  }}
48
48
  onKeyUp={(e) => {
49
49
  if (e.key === "Tab") {
50
- !e.shiftKey && triggerSave().then();
51
50
  e.preventDefault();
52
51
  e.stopPropagation();
52
+ !e.shiftKey && triggerSave().then();
53
53
  }
54
54
  }}
55
55
  />
@@ -42,9 +42,9 @@ export const GridFormSubComponentTextInput = (props: GridFormSubComponentTextInp
42
42
  }}
43
43
  onKeyUp={(e) => {
44
44
  if (e.key === "Tab") {
45
- !e.shiftKey && triggerSave().then();
46
45
  e.preventDefault();
47
46
  e.stopPropagation();
47
+ !e.shiftKey && triggerSave().then();
48
48
  } else if (e.key === "Enter") {
49
49
  triggerSave().then();
50
50
  e.preventDefault();
@@ -42,7 +42,7 @@ export const GridFormTextArea = <RowType extends GridBaseRow>(props: GridFormTex
42
42
  },
43
43
  [invalid, initialVale, value, props, field],
44
44
  );
45
- const { popoverWrapper, lastInputKeyboardEventHandlers } = useGridPopoverHook({ className: props.className, save });
45
+ const { popoverWrapper, onlyInputKeyboardEventHandlers } = useGridPopoverHook({ className: props.className, save });
46
46
  return popoverWrapper(
47
47
  <div style={{ display: "flex", flexDirection: "row", width: props.width ?? 240 }}>
48
48
  <TextAreaInput
@@ -51,7 +51,7 @@ export const GridFormTextArea = <RowType extends GridBaseRow>(props: GridFormTex
51
51
  error={invalid()}
52
52
  placeholder={props.placeholder}
53
53
  helpText={helpText}
54
- {...lastInputKeyboardEventHandlers}
54
+ {...onlyInputKeyboardEventHandlers}
55
55
  />
56
56
  </div>,
57
57
  );
@@ -45,7 +45,7 @@ export const GridFormTextInput = <RowType extends GridBaseRow>(props: GridFormTe
45
45
  },
46
46
  [invalid, value, initValue, props, field],
47
47
  );
48
- const { popoverWrapper, lastInputKeyboardEventHandlers } = useGridPopoverHook({ className: props.className, save });
48
+ const { popoverWrapper, onlyInputKeyboardEventHandlers } = useGridPopoverHook({ className: props.className, save });
49
49
 
50
50
  return popoverWrapper(
51
51
  <div style={{ display: "flex", flexDirection: "row", width: props.width ?? 240 }} className={"FormTest"}>
@@ -56,7 +56,7 @@ export const GridFormTextInput = <RowType extends GridBaseRow>(props: GridFormTe
56
56
  formatted={props.units}
57
57
  style={{ width: "100%" }}
58
58
  placeholder={props.placeholder}
59
- {...lastInputKeyboardEventHandlers}
59
+ {...onlyInputKeyboardEventHandlers}
60
60
  helpText={helpText}
61
61
  />
62
62
  </div>,