Skip to content

Commit 88e1ef7

Browse files
committed
Release 18.2.0
1 parent 1f47643 commit 88e1ef7

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# 18.2.0
2+
3+
## Features
4+
5+
- Allowed overwriting default value on reset. Added an `overwriteDefaultValue` parameter to the
6+
`FormControl.reset()` method. When `overwriteDefaultValue` is `true`, the value passed to
7+
`reset()` becomes the new default value for the control.
8+
- Enhanced `FormControl` reset method. Introduced a `nonNullable` property to the `FormControl`
9+
constructor to control the behavior of the `reset()` method. When `nonNullable` is `true`
10+
(the default), calling `reset()` without a value will reset the control to its initial value. When
11+
`nonNullable` is `false`, calling `reset()` without a value will reset the control to `null`.
12+
- Exposed `defaultValue` of the `FormControl`.
13+
114
# 18.1.2
215

316
## Fixes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ dependencies:
8888
flutter:
8989
sdk: flutter
9090

91-
reactive_forms: ^18.1.2
91+
reactive_forms: ^18.2.0
9292
```
9393
9494
Then, run the command `flutter packages get` in the console.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: reactive_forms
22
description: This is a model-driven approach to handling form inputs and validations, heavily inspired in Angular Reactive Forms.
3-
version: 18.1.2
3+
version: 18.2.0
44
homepage: "https://github.com/joanpablo/reactive_forms"
55

66
environment:

0 commit comments

Comments
 (0)