From e2fd79bfdb85f9f6e668337aafd904a9bba4b03c Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Thu, 25 Sep 2025 00:15:01 +0200 Subject: [PATCH] docs: add warning to `AbstractControl.setErrors` (#64063) fixes #38191 PR Close #64063 --- packages/forms/src/model/abstract_model.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/forms/src/model/abstract_model.ts b/packages/forms/src/model/abstract_model.ts index 7880d16037e..53e926da80f 100644 --- a/packages/forms/src/model/abstract_model.ts +++ b/packages/forms/src/model/abstract_model.ts @@ -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`