one more correction

This commit is contained in:
Niels Lyngsø
2024-01-03 10:38:13 +01:00
parent f81c6c3372
commit 79bbe3589e

View File

@@ -19,12 +19,12 @@ export class UmbPropertyEditorUIIconPickerElement extends UmbLitElement implemen
@property()
public set value(v: string) {
this._value = v ?? '';
const parts = v.split(' ');
const parts = this._value.split(' ');
if (parts.length === 2) {
this._icon = parts[0];
this._color = parts[1].replace('color-', '');
} else {
this._icon = v;
this._icon = this._value;
this._color = '';
}
}