@broxus/react-uikit 0.6.8 → 0.7.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.
@@ -145,7 +145,14 @@ function InternalSubNav(props) {
145
145
  // =============================== Render ===============================
146
146
  const popupId = domDataId ? `${domDataId}-dropdown` : undefined;
147
147
  // Title
148
- let titleNode = (React.createElement("a", { role: disabled ? undefined : 'menuitem', tabIndex: disabled ? undefined : -1, ref: elementRef, title: typeof title === 'string' ? title : undefined, "aria-controls": popupId, "aria-disabled": disabled, "aria-expanded": open, "aria-haspopup": true, "data-nav-id": overflowDisabled && domDataId ? null : domDataId, style: { ...directionStyle }, onClick: onInternalTitleClick, onFocus: onInternalFocus, ...activeProps }, title));
148
+ let titleNode = (React.createElement("a", { role: disabled ? undefined : 'menuitem', tabIndex: disabled ? undefined : -1, ref: elementRef, title: typeof title === 'string' ? title : undefined, "aria-controls": popupId, "aria-disabled": disabled, "aria-expanded": open, "aria-haspopup": true, "data-nav-id": overflowDisabled && domDataId ? null : domDataId, style: { ...directionStyle }, onClick: onInternalTitleClick, onFocus: onInternalFocus, ...activeProps },
149
+ React.createElement(React.Fragment, { key: "children" },
150
+ title,
151
+ typeof mergedExpandIcon === 'function' ? mergedExpandIcon({
152
+ disabled,
153
+ isOpen: open,
154
+ isSubNav: true,
155
+ }) : mergedExpandIcon)));
149
156
  // Cache mode if it changes to `inline` which do not have popup motion
150
157
  const triggerModeRef = React.useRef(mode);
151
158
  if (mode !== 'inline' && connectedPath.length > 1) {