@oslokommune/punkt-react 15.0.1 → 15.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "15.0.1",
3
+ "version": "15.0.2",
4
4
  "description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "@lit-labs/ssr-dom-shim": "^1.2.1",
41
41
  "@lit/react": "^1.0.7",
42
- "@oslokommune/punkt-elements": "^15.0.1",
42
+ "@oslokommune/punkt-elements": "^15.0.2",
43
43
  "classnames": "^2.5.1",
44
44
  "prettier": "^3.3.3",
45
45
  "react-hook-form": "^7.53.0"
@@ -109,5 +109,5 @@
109
109
  "url": "https://github.com/oslokommune/punkt/issues"
110
110
  },
111
111
  "license": "MIT",
112
- "gitHead": "e4a75d4efe0a17688bdba0071e12cb789ae430c2"
112
+ "gitHead": "95d23c6d08dfcdcf057f3ae67bda55435d8d9be1"
113
113
  }
@@ -115,6 +115,13 @@ export const PktHeaderService = forwardRef(
115
115
  }, [user?.lastLoggedIn])
116
116
 
117
117
  const [openMenu, setOpenMenu] = useState<'none' | 'slot' | 'search' | 'user'>(openedMenu || 'none')
118
+
119
+ useEffect(() => {
120
+ if (openedMenu !== undefined) {
121
+ setOpenMenu(openedMenu)
122
+ }
123
+ }, [openedMenu])
124
+
118
125
  const [hidden, setHidden] = useState(false)
119
126
  const [lastScrollPosition, setLastScrollPosition] = useState(0)
120
127
  const [alignSlotRight, setAlignSlotRight] = useState(false)