mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: add warning to AbstractControl.setErrors (#64063)
fixes #38191 PR Close #64063
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user