@carbon-labs/react-ui-shell 0.53.0 → 0.55.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.
|
@@ -275,10 +275,8 @@ const SideNavMenu = /*#__PURE__*/React.forwardRef(function SideNavMenu(_ref, ref
|
|
|
275
275
|
setSecondaryOpen(isExpanded);
|
|
276
276
|
}, [isExpanded]);
|
|
277
277
|
useEffect(() => {
|
|
278
|
-
if (primary
|
|
279
|
-
setIsExpanded(
|
|
280
|
-
} else {
|
|
281
|
-
setIsExpanded(true);
|
|
278
|
+
if (primary) {
|
|
279
|
+
setIsExpanded(currentPrimaryMenu === uniqueId);
|
|
282
280
|
}
|
|
283
281
|
}, [currentPrimaryMenu]);
|
|
284
282
|
// reset to opened/collapsed menu state when Panel SideNav is toggled
|
|
@@ -277,10 +277,8 @@ const SideNavMenu = /*#__PURE__*/React.forwardRef(function SideNavMenu(_ref, ref
|
|
|
277
277
|
setSecondaryOpen(isExpanded);
|
|
278
278
|
}, [isExpanded]);
|
|
279
279
|
React.useEffect(() => {
|
|
280
|
-
if (primary
|
|
281
|
-
setIsExpanded(
|
|
282
|
-
} else {
|
|
283
|
-
setIsExpanded(true);
|
|
280
|
+
if (primary) {
|
|
281
|
+
setIsExpanded(currentPrimaryMenu === uniqueId);
|
|
284
282
|
}
|
|
285
283
|
}, [currentPrimaryMenu]);
|
|
286
284
|
// reset to opened/collapsed menu state when Panel SideNav is toggled
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon-labs/react-ui-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.55.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@ibm/telemetry-js": "^1.9.1"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "6a983f88b50214144700a5e80e27829c3a55502a"
|
|
46
46
|
}
|