@oslokommune/punkt-react 12.32.8 → 12.33.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "12.32.8",
3
+ "version": "12.33.1",
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",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@lit-labs/ssr-dom-shim": "^1.2.1",
40
40
  "@lit/react": "^1.0.5",
41
- "@oslokommune/punkt-elements": "^12.32.8",
41
+ "@oslokommune/punkt-elements": "^12.33.0",
42
42
  "angular-html-parser": "^6.0.2",
43
43
  "html-format": "^1.1.7",
44
44
  "prettier": "^3.3.3",
@@ -49,7 +49,7 @@
49
49
  "devDependencies": {
50
50
  "@babel/plugin-proposal-private-property-in-object": "^7.18.6",
51
51
  "@oslokommune/punkt-assets": "^12.30.1",
52
- "@oslokommune/punkt-css": "^12.32.8",
52
+ "@oslokommune/punkt-css": "^12.33.0",
53
53
  "@testing-library/jest-dom": "^6.5.0",
54
54
  "@testing-library/react": "^16.0.1",
55
55
  "@testing-library/user-event": "^14.5.2",
@@ -112,5 +112,5 @@
112
112
  "url": "https://github.com/oslokommune/punkt/issues"
113
113
  },
114
114
  "license": "MIT",
115
- "gitHead": "2be6c93ef32da3656e4c88367201849e772d0017"
115
+ "gitHead": "243754eb54ccccf67e042fd1a94826399e188503"
116
116
  }
@@ -151,7 +151,7 @@ export const PktSearchInput = forwardRef<HTMLInputElement, ISearchInput | ISearc
151
151
  }`,
152
152
  type: suggestion.onClick ? 'button' : undefined,
153
153
  onClick: () => handleSuggestionClick(suggestion.onClick, index),
154
- onKeyUp: () => handleSuggestionClick(suggestion.onClick, index),
154
+ onKeyUp: (event: { key: string }) => event.key === "Enter" && handleSuggestionClick(suggestion.onClick, index)
155
155
  },
156
156
  <>
157
157
  {suggestion.title && <h3 className="pkt-searchinput__suggestion-title">{suggestion.title}</h3>}