Skip to content

Commit d223f21

Browse files
chore: update FormBuilderField documentation, to reflect breaking change
1 parent 9f543cb commit d223f21

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/src/form_builder_field.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ class FormBuilderFieldState<F extends FormBuilderField<T>, T>
233233

234234
/// Validate field
235235
///
236+
/// **BREAKING CHANGE**:
237+
/// In previous versions, calling `validate()` would automatically clear any custom errors set via `invalidate()`.
238+
/// Now, `validate()` does not clear custom errors by default.
239+
/// If you want to clear the custom error when validating, you must explicitly pass `clearCustomError: true`.
240+
///
236241
/// Clear custom error if [clearCustomError] is `true`.
237242
/// By default `false`
238243
///

0 commit comments

Comments
 (0)