@linzjs/step-ag-grid 7.11.2 → 7.11.4

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.
@@ -74,7 +74,7 @@
74
74
  align-items: center;
75
75
  }
76
76
 
77
- .ag-cell.ag-cell-inline-editing {
77
+ .ag-cell.ag-cell-inline-editing:not(.ag-cell-auto-height) {
78
78
  bottom: 0;
79
79
  }
80
80
 
package/dist/index.js CHANGED
@@ -219,19 +219,21 @@ function commonProps(isDisabled, isHovering) {
219
219
  }
220
220
  var indexOfNode = function (nodeList, node) { return lodashEs.findIndex(nodeList, node); };
221
221
  var focusFirstInput = function (container) {
222
- if (!(container instanceof Element))
222
+ // We can't use instanceof Element in portals, so I use querySelectorAll as a proxy here
223
+ if (!container || !("querySelectorAll" in container))
223
224
  return false;
224
225
  var inputs = container.querySelectorAll("input[type='text'],textarea");
225
226
  var input = inputs[0];
226
- if (input instanceof HTMLElement) {
227
- input.focus();
228
- // Text areas should start at end
229
- if (input instanceof HTMLTextAreaElement) {
230
- input.selectionStart = input.value.length;
231
- }
232
- return true;
227
+ // Using focus as proxy for HTMLElement
228
+ if (!input || !("focus" in input))
229
+ return false;
230
+ input.focus();
231
+ // Text areas should start at end
232
+ // this is a proxy for instanceof HTMLTextAreaElement
233
+ if (input.type === "textarea") {
234
+ input.selectionStart = input.value.length;
233
235
  }
234
- return false;
236
+ return true;
235
237
  };
236
238
 
237
239
  /******************************************************************************
@@ -3792,7 +3794,7 @@ var MenuRadioItem = function (props) {
3792
3794
  }, [options, setOptions]);
3793
3795
  return (jsxRuntime.jsx(MenuItem, __assign({ onClick: function (e) {
3794
3796
  // Global react-menu MenuItem handler handles tabs
3795
- if (e.key !== "Tab") {
3797
+ if (e.key !== "Tab" && e.key !== "Enter") {
3796
3798
  e.keepOpen = true;
3797
3799
  toggleValue(item);
3798
3800
  }