@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.
- package/dist/GridTheme.scss +1 -1
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/dist/step-ag-grid.esm.js +12 -10
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridForm/GridFormMultiSelect.tsx +1 -1
- package/src/react-menu3/utils/utils.ts +10 -9
- package/src/styles/GridTheme.scss +1 -1
package/dist/GridTheme.scss
CHANGED
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
|
-
|
|
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
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
|
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
|
}
|