This commit is contained in:
Niels Lyngsø
2025-01-31 21:31:36 +01:00
parent 89219d8327
commit 13bcf16644

View File

@@ -125,11 +125,11 @@ export function UmbFormControlMixin<
*/
@property({ reflect: false }) // Do not 'reflect' as the attribute value is used as fallback. [NL]
get value(): ValueType | DefaultValueType {
// For some reason we need to keep this as setters and getters for inherited classes for work properly when they override these methods. [NL]
return this.#value;
}
set value(newValue: ValueType | DefaultValueType) {
this.#value = newValue;
this._runValidators();
}
// Validation