Having issues combining the following:
- angular reactive form
- custom validator at form level (cross-field validator)
- usage of the 'updateOn' option set to 'blur'
A demonstration of the problem can be found in this simple stackblitz:
https://stackblitz.com/edit/angular-url9uc?devtoolsheight=33&file=src/app/app.component.ts
CASE 1 : KO
'updateOn' option set to 'blur'.
Specific field validators (required / email) work only when focus is lost on the input text field. However, the cross-field global validator (checking that fields are the same) does not activate!
CASE 2 : OK
'updateOn' option is undefined.
Specific field validators (required / email) react in real time as values change in the input text field. The cross-field global validator also works correctly!
I suspect there might be an issue with my custom validator or how I am using it, but I'm struggling to pinpoint the exact problem...
Any assistance would be greatly appreciated! Thank you!