docs: add warning to AbstractControl.setErrors (#64063)

fixes #38191

PR Close #64063
This commit is contained in:
Matthieu Riegler
2025-09-25 00:15:01 +02:00
committed by kirjs
parent 6fee508dab
commit e2fd79bfdb
@@ -1443,6 +1443,8 @@ export abstract class AbstractControl<
*
* Calling `setErrors` also updates the validity of the parent control.
*
* Note: Manually set errors are always overwritten by the results of the next validation run.
*
* @param opts Configuration options that determine how the control propagates
* changes and emits events after the control errors are set.
* * `emitEvent`: When true or not supplied (the default), the `statusChanges`