Skip to content

Commit 2aa5a52

Browse files
authored
Merge pull request #205 from vovaklhdella/fix/checkbox-listtile-touched
Mark ReactiveCheckboxListTile control as touched on value change
2 parents 48a0cdc + 29fed21 commit 2aa5a52

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/reactive_checkbox_list_tile/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [1.0.3]
2+
Mark control as touched on value change
3+
14
## [1.0.1]
25

36
* Support `reactive_forms: 18.x`

packages/reactive_checkbox_list_tile/lib/src/reactive_checkbox_list_tile.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ class ReactiveCheckboxListTile<T> extends ReactiveFocusableFormField<T, bool> {
9090
checkboxShape: checkboxShape,
9191
side: side,
9292
enabled: field.control.enabled,
93-
onChanged: (value) => field.control.enabled
94-
? () {
93+
onChanged: field.control.enabled
94+
? (value) {
9595
field.didChange(value);
9696
field.control.markAsTouched();
9797
}

packages/reactive_checkbox_list_tile/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: reactive_checkbox_list_tile
22
description: Wrapper around CheckboxListTile to use with reactive_forms.
3-
version: 1.0.2
3+
version: 1.0.3
44
repository: https://github.com/artflutter/reactive_forms_widgets/tree/master/packages/reactive_checkbox_list_tile
55
issue_tracker: https://github.com/artflutter/reactive_forms_widgets/issues
66

0 commit comments

Comments
 (0)