Skip to content

Commit 89219d8

Browse files
committed
Revert "no need to run validators when we already do so on update"
This reverts commit 2365906.
1 parent 0ae33f8 commit 89219d8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,13 @@ 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+
get value(): ValueType | DefaultValueType {
128+
return this.#value;
129+
}
130+
set value(newValue: ValueType | DefaultValueType) {
131+
this.#value = newValue;
132+
this._runValidators();
133+
}
128134

129135
// Validation
130136
//private _validityState = new UmbValidityState();

0 commit comments

Comments
 (0)