blue-react 9.1.7 → 9.2.0

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.
@@ -94,6 +94,11 @@ function MenuItem(props) {
94
94
  (0, _react.useEffect)(function () {
95
95
  if (props.showDropdown !== undefined) setShowDropdown(props.showDropdown);
96
96
  }, [props.showDropdown]);
97
+ (0, _react.useEffect)(function () {
98
+ if (props.onShowDropdown) {
99
+ props.onShowDropdown(showDropdown);
100
+ }
101
+ }, [props.onShowDropdown, showDropdown]);
97
102
  var className = "blue-menu-item btn" + (props.isActive ? " active" : "") + (props.className ? " " + props.className : "") + (props.children ? " blue-menu-item-dropdown-toggle" : "") + (props.highlighted ? " highlighted" : "");
98
103
  var icon, iconForActive;
99
104
 
@@ -44,12 +44,14 @@ function Outside(_ref) {
44
44
  var children = _ref.children,
45
45
  className = _ref.className,
46
46
  onClickOutside = _ref.onClickOutside,
47
+ onClick = _ref.onClick,
47
48
  style = _ref.style;
48
49
  var wrapperRef = (0, _react.useRef)(null);
49
50
  useOutside(wrapperRef, onClickOutside);
50
51
  return /*#__PURE__*/_react.default.createElement("div", {
51
52
  ref: wrapperRef,
52
53
  className: className,
53
- style: style
54
+ style: style,
55
+ onClick: onClick
54
56
  }, children);
55
57
  }