From 317cc5c6f187512b4df0f7128ef40a85208c68d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 31 Jan 2025 21:29:16 +0100 Subject: [PATCH] Reapply "correct initial value set and remove private version" This reverts commit ce7c6e010dad63bd545b772f4749fd1ec8381d15. --- .../src/packages/core/validation/mixins/form-control.mixin.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/validation/mixins/form-control.mixin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/validation/mixins/form-control.mixin.ts index d01c69be59..92fb763466 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/validation/mixins/form-control.mixin.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/validation/mixins/form-control.mixin.ts @@ -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; + value: ValueType | DefaultValueType = defaultValue as unknown as DefaultValueType; // Validation //private _validityState = new UmbValidityState(); @@ -148,7 +148,6 @@ export function UmbFormControlMixin< } private _pristine: boolean = true; - #value: ValueType | DefaultValueType = defaultValue as unknown as DefaultValueType; protected _internals: ElementInternals; #form: HTMLFormElement | null = null; #validators: UmbFormControlValidatorConfig[] = [];