@linzjs/step-ag-grid 2.4.8 → 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.
@@ -2073,7 +2073,8 @@ var GridContextProvider = function (props) {
2073
2073
  */
2074
2074
  var sizeColumnsToFit = function () {
2075
2075
  gridApiOp(function (gridApi) {
2076
- gridApi.sizeColumnsToFit();
2076
+ // Hide size columns to fit errors in tests
2077
+ document.body.clientWidth && gridApi.sizeColumnsToFit();
2077
2078
  });
2078
2079
  };
2079
2080
  var stopEditing = function () { return gridApiOp(function (gridApi) { return gridApi.stopEditing(); }); };
@@ -3092,9 +3093,12 @@ var GridFormDropDown = function (_props) {
3092
3093
  return optionValue === item.value;
3093
3094
  });
3094
3095
  if ((key === "Enter" || key === "Tab") && subComponentItem) {
3095
- selectItemHandler(item.value, subComponentItem.subComponentValue);
3096
- ref.closeMenu();
3096
+ return selectItemHandler(item.value, subComponentItem.subComponentValue).then(function () {
3097
+ ref.closeMenu();
3098
+ return true;
3099
+ });
3097
3100
  }
3101
+ return false;
3098
3102
  },
3099
3103
  key: "".concat(props.field, "-").concat(index, "_subcomponent_inner")
3100
3104
  }, ref);
@@ -3739,7 +3743,9 @@ var GridFormSubComponentTextInput = function (_a) {
3739
3743
  var _b = useState(""), inputValue = _b[0], setInputValue = _b[1];
3740
3744
  return (jsxs("div", __assign({ style: {
3741
3745
  display: "flex",
3742
- flexDirection: "column"
3746
+ flexDirection: "column",
3747
+ width: "100%",
3748
+ padding: 0
3743
3749
  } }, { children: [jsx(TextInputFormatted, { className: inputClass, value: inputValue, onChange: function (e) {
3744
3750
  var value = e.target.value;
3745
3751
  setValue(value);
@@ -3756,7 +3762,7 @@ var GridFormSubComponentTextInput = function (_a) {
3756
3762
  width: "100%"
3757
3763
  }
3758
3764
  } }), jsx("span", __assign({ style: {
3759
- fontSize: "0.75rem"
3765
+ fontSize: "0.7rem"
3760
3766
  } }, { children: helpText }))] })));
3761
3767
  };
3762
3768