I wonder if it is possible to have the validation in reactive forms on blur. At the moment you can set updateOn: blur
but then the values of the input fields won't update on input. In my case i need the values to be updated on every keystroke because I do calculations with it and show the result to the user. The validation should only happen on blur.
thx.
EDIT:
I use FormBuilder, some build in validators and some custom validators. Example code:
let formToMake = {
purpose: [null, Validators.required],
registrationDate: this.fb.group({
day: [null, Validators.required],
month: [null, Validators.required],
year: [null, Validators.required]
}),
isTruth: [null, Validators.compose([checkIfTrue, Validators.required])]
};
If i would use the blur event i need to do all my validation manually, which i think is not a good way.