@equinor/cpl-top-bar-react 0.6.0 → 0.6.1
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.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -430,7 +430,7 @@ function SideMenu({
|
|
|
430
430
|
if (activeCatalogueElement) {
|
|
431
431
|
activeCatalogueElement.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
432
432
|
}
|
|
433
|
-
}, []);
|
|
433
|
+
}, [mainMenuItemsWithActiveCatalogue]);
|
|
434
434
|
const checkOverflow = (0, import_react.useCallback)(() => {
|
|
435
435
|
requestAnimationFrame(() => {
|
|
436
436
|
const element = containerRef.current;
|
package/dist/index.mjs
CHANGED
|
@@ -396,7 +396,7 @@ function SideMenu({
|
|
|
396
396
|
if (activeCatalogueElement) {
|
|
397
397
|
activeCatalogueElement.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
398
398
|
}
|
|
399
|
-
}, []);
|
|
399
|
+
}, [mainMenuItemsWithActiveCatalogue]);
|
|
400
400
|
const checkOverflow = useCallback(() => {
|
|
401
401
|
requestAnimationFrame(() => {
|
|
402
402
|
const element = containerRef.current;
|