Skip to content

Commit 758a9cf

Browse files
committed
Allow deselection of color picker property. (#19174)
1 parent 65caa60 commit 758a9cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Umbraco.Web.UI.Client/src/packages/property-editors/color-picker/property-editor-ui-color-picker.element.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ export class UmbPropertyEditorUIColorPickerElement extends UmbLitElement impleme
1717

1818
@property({ type: Object })
1919
public set value(value: UmbSwatchDetails | undefined) {
20-
if (!value) return;
21-
this.#value = this.#ensureHashPrefix(value);
20+
this.#value = value ? this.#ensureHashPrefix(value) : undefined;
2221
}
2322
public get value(): UmbSwatchDetails | undefined {
2423
return this.#value;

0 commit comments

Comments
 (0)