Revert "correct initial value set and remove private version"

This reverts commit 09072b6946.
This commit is contained in:
Niels Lyngsø
2025-01-31 21:28:28 +01:00
parent 2fe2b46670
commit ce7c6e010d

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[] = [];