@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 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/cpl-top-bar-react",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",