Skip to content

Commit

Permalink
Fixed initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei15193 authored Oct 25, 2024
1 parent 15920b0 commit 0c43315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/forms/FormField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class FormField<TValue, TValidationError = string> extends Validatable<TV
* Gets the initial value of the field.
*/
public get initialValue(): TValue {
return this._value;
return this._initialValue;
}

/**
Expand Down Expand Up @@ -218,4 +218,4 @@ export class FormField<TValue, TValidationError = string> extends Validatable<TV
protected onShouldTriggerValidation(changedProperties: readonly (keyof this)[]): boolean {
return changedProperties.some(changedProperty => changedProperty === 'value');
}
}
}

0 comments on commit 0c43315

Please sign in to comment.