@react-hive/honey-layout 17.10.1 → 17.10.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.
@@ -4052,12 +4052,14 @@ __webpack_require__.r(__webpack_exports__);
4052
4052
 
4053
4053
  const HoneyContextMenuContentOption = ({ option, ...props }) => {
4054
4054
  const { context, floatingContext } = (0,_HoneyPopup__WEBPACK_IMPORTED_MODULE_2__.useHoneyPopupContext)();
4055
- const handleClick = () => {
4056
- option.onClick?.({ context, floatingContext });
4057
- };
4058
4055
  const isDisabled = (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.isFunction)(option.disabled)
4059
4056
  ? option.disabled({ context, floatingContext })
4060
4057
  : option.disabled === false;
4058
+ const handleClick = () => {
4059
+ if (!isDisabled) {
4060
+ option.onClick?.({ context, floatingContext });
4061
+ }
4062
+ };
4061
4063
  return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_HoneyContextMenuContentOptionStyled__WEBPACK_IMPORTED_MODULE_3__.HoneyContextMenuContentOptionStyled, { onClick: handleClick,
4062
4064
  // ARIA
4063
4065
  role: "menuitem", "aria-disabled": isDisabled, "data-testid": "honey-context-menu-option", ...props, children: option.label }));