Revert "Reapply "correct initial value set and remove private version""

This reverts commit 317cc5c6f1.
This commit is contained in:
Niels Lyngsø
2025-01-31 21:30:13 +01:00
parent 317cc5c6f1
commit 0ae33f8cbc

View File

@@ -124,7 +124,7 @@ export function UmbFormControlMixin<
* @default
*/
@property({ reflect: false }) // Do not 'reflect' as the attribute value is used as fallback. [NL]
value: ValueType | DefaultValueType = defaultValue as unknown as DefaultValueType;
value: ValueType | DefaultValueType;
// Validation
//private _validityState = new UmbValidityState();
@@ -148,6 +148,7 @@ export function UmbFormControlMixin<
}
private _pristine: boolean = true;
#value: ValueType | DefaultValueType = defaultValue as unknown as DefaultValueType;
protected _internals: ElementInternals;
#form: HTMLFormElement | null = null;
#validators: UmbFormControlValidatorConfig[] = [];