grep-components 1.26.2-GREPF-2194.1 → 1.26.2-GREPF-2186.2
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/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3229,10 +3229,17 @@ var CollapsableMenuItem = function (_a) {
|
|
|
3229
3229
|
return window.dispatchEvent(new Event('resize'));
|
|
3230
3230
|
});
|
|
3231
3231
|
} }, items)))); };
|
|
3232
|
+
var setFocus = function () {
|
|
3233
|
+
var _a, _b, _c;
|
|
3234
|
+
if (!((_a = listItemRef.current) === null || _a === void 0 ? void 0 : _a.classList.contains('Mui-selected')) &&
|
|
3235
|
+
!((_b = listItemRef.current) === null || _b === void 0 ? void 0 : _b.classList.contains(classes.subMenu))) {
|
|
3236
|
+
(_c = listItemRef.current) === null || _c === void 0 ? void 0 : _c.focus();
|
|
3237
|
+
}
|
|
3238
|
+
};
|
|
3232
3239
|
return tooltipText ? (React__default.createElement(Tooltip, { title: tooltipText },
|
|
3233
3240
|
React__default.createElement(MenuItem, { role: "menuitem", sx: disabled && !items
|
|
3234
3241
|
? { cursor: 'not-allowed', pointerEvents: 'inherit !important' }
|
|
3235
|
-
: { pointerEvents: 'inherit !important' }, className: classes.root, onMouseOver:
|
|
3242
|
+
: { pointerEvents: 'inherit !important' }, className: classes.root, onMouseOver: setFocus, selected: open, ref: listItemRef, onClick: handleClick, onKeyDown: handleKey }, renderInner()))) : (React__default.createElement(MenuItem, __assign({ sx: disabled && !items ? { cursor: 'not-allowed' } : {}, className: classes.root, onMouseOver: setFocus, ref: listItemRef, selected: open, onClick: handleClick, onKeyDown: handleKey }, props), renderInner()));
|
|
3236
3243
|
};
|
|
3237
3244
|
|
|
3238
3245
|
var useStyles$f = makeStyles()(function (_a) {
|