@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/package.json
CHANGED
|
@@ -354,7 +354,7 @@ const MenuRadioItem = (props: {
|
|
|
354
354
|
<MenuItem
|
|
355
355
|
onClick={(e: ClickEvent) => {
|
|
356
356
|
// Global react-menu MenuItem handler handles tabs
|
|
357
|
-
if (e.key !== "Tab") {
|
|
357
|
+
if (e.key !== "Tab" && e.key !== "Enter") {
|
|
358
358
|
e.keepOpen = true;
|
|
359
359
|
toggleValue(item);
|
|
360
360
|
}
|
|
@@ -88,16 +88,17 @@ export function commonProps(isDisabled?: boolean, isHovering?: boolean) {
|
|
|
88
88
|
export const indexOfNode = (nodeList: NodeListOf<Node>, node: Node) => findIndex(nodeList, node);
|
|
89
89
|
|
|
90
90
|
export const focusFirstInput = (container: any) => {
|
|
91
|
-
|
|
91
|
+
// We can't use instanceof Element in portals, so I use querySelectorAll as a proxy here
|
|
92
|
+
if (!container || !("querySelectorAll" in container)) return false;
|
|
92
93
|
const inputs = container.querySelectorAll("input[type='text'],textarea");
|
|
93
94
|
const input = inputs[0];
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
// Using focus as proxy for HTMLElement
|
|
96
|
+
if (!input || !("focus" in input)) return false;
|
|
97
|
+
input.focus();
|
|
98
|
+
// Text areas should start at end
|
|
99
|
+
// this is a proxy for instanceof HTMLTextAreaElement
|
|
100
|
+
if (input.type === "textarea") {
|
|
101
|
+
input.selectionStart = input.value.length;
|
|
101
102
|
}
|
|
102
|
-
return
|
|
103
|
+
return true;
|
|
103
104
|
};
|