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