Skip to content

Commit

Permalink
change initialValue of FieldState from private to protected (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleonowicz committed Aug 22, 2024
1 parent ec0a26a commit b3788d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fieldState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class FieldState<V> extends ValidatableState<V> implements IState<V> {
this.touched = false
}

constructor(private initialValue: V) {
constructor(protected initialValue: V) {
super()
makeObservable(this)
this.reset()
Expand Down

0 comments on commit b3788d7

Please sign in to comment.