You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addValidatorsTo(parentControl: AbstractControl|null|undefined){if(parentControl!=null){parentControl.validator=Validators.compose([parentControl.validator,()=>{// could overwrite some errors - but we only need it to communicate to the "parent" form that// these controls here are valid or notconsterrors=controls.reduce((e,next)=>({ ...e, ...next.errors}),{});returncontrols.some(c=>c.errors!=null) ? errors : null;}]);parentControl.asyncValidator=Validators.composeAsync([parentControl.asyncValidator,async(c)=>{returnPromise.all(controls.filter(c=>typeofc?.asyncValidator==='function').map(c=>typeofc?.asyncValidator==='function' ? isObservable(c.asyncValidator(c) : Promise.resolve()).then((results: (object|null)[])=>results.filter(o=>o!=null))}])}returncomposer;}
When using the
forAllControlsIn
andaddValidatorsTo
the async validators are not supported.The text was updated successfully, but these errors were encountered: