@onewelcome/react-lib-components 0.2.3 → 0.2.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.
@@ -427,6 +427,8 @@ var defaultConfigObject = {
427
427
  left: 0
428
428
  }
429
429
  };
430
+ /* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain*/
431
+
430
432
  var usePosition = function usePosition(providedConfigObject) {
431
433
  if (providedConfigObject === void 0) {
432
434
  providedConfigObject = defaultConfigObject;
@@ -918,9 +920,11 @@ var ContextMenuItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
918
920
  }
919
921
  }, [hasFocus, innerButtonRef, contextMenuOpened]);
920
922
  return React.createElement("li", {
921
- role: "menuitem",
923
+ role: "none",
922
924
  className: modules_3e93850e["context-menu-item"] + " " + (className != null ? className : "")
923
- }, React.createElement("button", _extends({}, rest, {
925
+ }, React.createElement("button", _extends({
926
+ role: "menuitem"
927
+ }, rest, {
924
928
  ref: innerButtonRef,
925
929
  "data-focus": hasFocus,
926
930
  tabIndex: -1,
@@ -4921,7 +4925,7 @@ var DataGridRow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4921
4925
  columnLength: headers == null ? void 0 : headers.length,
4922
4926
  disableContextMenuColumn: disableContextMenuColumn
4923
4927
  });
4924
- var visible = (headers == null ? void 0 : headers.length) > index ? !headers[index].hidden : true;
4928
+ var visible = headers && headers.length > index ? !headers[index].hidden : true;
4925
4929
  return visible && cellWithSpacing;
4926
4930
  }
4927
4931