@oslokommune/punkt-elements
Advanced tools
Comparing version 12.18.10 to 12.18.11
@@ -21,3 +21,3 @@ import { P as w } from "./alert-Du_24cUG.js"; | ||
import { P as rt } from "./textinput-D46zLo13.js"; | ||
import { P as ot } from "./select-BGLSaXUH.js"; | ||
import { P as ot } from "./select-Djqz3LXr.js"; | ||
var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, o = (t, e, i, a) => { | ||
@@ -24,0 +24,0 @@ for (var r = a > 1 ? void 0 : a ? v(e, i) : e, p = t.length - 1, l; p >= 0; p--) |
@@ -1,2 +0,2 @@ | ||
import { P as t } from "./select-BGLSaXUH.js"; | ||
import { P as t } from "./select-Djqz3LXr.js"; | ||
const a = t; | ||
@@ -3,0 +3,0 @@ export { |
{ | ||
"name": "@oslokommune/punkt-elements", | ||
"version": "12.18.10", | ||
"version": "12.18.11", | ||
"description": "Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo", | ||
@@ -60,3 +60,3 @@ "homepage": "https://punkt.oslo.kommune.no", | ||
"license": "MIT", | ||
"gitHead": "c5d10571b422e536276ed06df800db0c2e7666ca" | ||
"gitHead": "8a210e2160405aeef55732bc90c860fa2d0f66bb" | ||
} |
@@ -61,3 +61,7 @@ import { html, PropertyValues } from 'lit' | ||
label: node.textContent || node.getAttribute('value') || '', | ||
disabled: !!node.getAttribute('disabled'), | ||
} | ||
if (node.getAttribute('selected') && !this.value) { | ||
this.value = option.value | ||
} | ||
this._options.push(option) | ||
@@ -124,3 +128,7 @@ }) | ||
(option) => | ||
html`<option value=${option.value} ?selected=${this.value == option.value}> | ||
html`<option | ||
value=${option.value} | ||
?selected=${this.value == option.value} | ||
?disabled=${option.disabled} | ||
> | ||
${option.label} | ||
@@ -127,0 +135,0 @@ </option>`, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1686768
33663