MCPcopy Index your code
hub / github.com/angular/angular / setUpBlurPipeline

Function setUpBlurPipeline

packages/forms/src/directives/shared.ts:275–282  ·  view source on GitHub ↗
(control: FormControl, dir: NgControl)

Source from the content-addressed store, hash-verified

273}
274
275function 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
284function updateControl(control: FormControl, dir: NgControl): void {
285 if (control._pendingDirty) control.markAsDirty();

Callers 1

Calls 3

updateControlFunction · 0.85
registerOnTouchedMethod · 0.65
markAsTouchedMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…