Skip to content

Commit 317cc5c

Browse files
committed
Reapply "correct initial value set and remove private version"
This reverts commit ce7c6e0.
1 parent ce7c6e0 commit 317cc5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Umbraco.Web.UI.Client/src/packages/core/validation/mixins/form-control.mixin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function UmbFormControlMixin<
124124
* @default
125125
*/
126126
@property({ reflect: false }) // Do not 'reflect' as the attribute value is used as fallback. [NL]
127-
value: ValueType | DefaultValueType;
127+
value: ValueType | DefaultValueType = defaultValue as unknown as DefaultValueType;
128128

129129
// Validation
130130
//private _validityState = new UmbValidityState();
@@ -148,7 +148,6 @@ export function UmbFormControlMixin<
148148
}
149149
private _pristine: boolean = true;
150150

151-
#value: ValueType | DefaultValueType = defaultValue as unknown as DefaultValueType;
152151
protected _internals: ElementInternals;
153152
#form: HTMLFormElement | null = null;
154153
#validators: UmbFormControlValidatorConfig[] = [];

0 commit comments

Comments
 (0)