Allow deselection of color picker property. (#19174)

This commit is contained in:
Andy Butland
2025-04-28 15:50:03 +02:00
parent 65caa60496
commit 758a9cf1ec

View File

@@ -17,8 +17,7 @@ export class UmbPropertyEditorUIColorPickerElement extends UmbLitElement impleme
@property({ type: Object })
public set value(value: UmbSwatchDetails | undefined) {
if (!value) return;
this.#value = this.#ensureHashPrefix(value);
this.#value = value ? this.#ensureHashPrefix(value) : undefined;
}
public get value(): UmbSwatchDetails | undefined {
return this.#value;