Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit d8b81ac

Browse files
committed
fix: only set the ?readonly attribute on the swatches element since it handles setting it on the colors afterwards
1 parent 657100e commit d8b81ac

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/packages/core/components/input-color/input-color.element.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ export class UmbInputColorElement extends UUIFormControlMixin(UmbLitElement, '')
5151
return map(
5252
this.swatches,
5353
(swatch) => html`
54-
<uui-color-swatch
55-
?readonly=${this.readonly}
56-
label=${swatch.label}
57-
value=${swatch.value}
58-
.showLabel=${this.showLabels}></uui-color-swatch>
54+
<uui-color-swatch label=${swatch.label} value=${swatch.value} .showLabel=${this.showLabels}></uui-color-swatch>
5955
`,
6056
);
6157
}

0 commit comments

Comments
 (0)