(control: FormControl, dir: NgControl)
| 274 | } |
| 275 | |
| 276 | function setUpBlurPipeline(control: FormControl, dir: NgControl): void { |
| 277 | dir.valueAccessor!.registerOnTouched(() => { |
| 278 | control._pendingTouched = true; |
| 279 | |
| 280 | if (control.updateOn === 'blur' && control._pendingChange) updateControl(control, dir); |
| 281 | if (control.updateOn !== 'submit') control.markAsTouched(); |
| 282 | }); |
| 283 | } |
| 284 | |
| 285 | function updateControl(control: FormControl, dir: NgControl): void { |
| 286 | if (control._pendingDirty) control.markAsDirty(); |
no test coverage detected