diff --git a/packages/reactive_checkbox_list_tile/CHANGELOG.md b/packages/reactive_checkbox_list_tile/CHANGELOG.md index 077887f..1e3545a 100644 --- a/packages/reactive_checkbox_list_tile/CHANGELOG.md +++ b/packages/reactive_checkbox_list_tile/CHANGELOG.md @@ -1,3 +1,6 @@ +## [1.0.3] +Mark control as touched on value change + ## [1.0.1] * Support `reactive_forms: 18.x` diff --git a/packages/reactive_checkbox_list_tile/lib/src/reactive_checkbox_list_tile.dart b/packages/reactive_checkbox_list_tile/lib/src/reactive_checkbox_list_tile.dart index 2b42d37..e8a2f96 100644 --- a/packages/reactive_checkbox_list_tile/lib/src/reactive_checkbox_list_tile.dart +++ b/packages/reactive_checkbox_list_tile/lib/src/reactive_checkbox_list_tile.dart @@ -90,8 +90,8 @@ class ReactiveCheckboxListTile extends ReactiveFocusableFormField { checkboxShape: checkboxShape, side: side, enabled: field.control.enabled, - onChanged: (value) => field.control.enabled - ? () { + onChanged: field.control.enabled + ? (value) { field.didChange(value); field.control.markAsTouched(); } diff --git a/packages/reactive_checkbox_list_tile/pubspec.yaml b/packages/reactive_checkbox_list_tile/pubspec.yaml index d001448..d0f3f39 100644 --- a/packages/reactive_checkbox_list_tile/pubspec.yaml +++ b/packages/reactive_checkbox_list_tile/pubspec.yaml @@ -1,6 +1,6 @@ name: reactive_checkbox_list_tile description: Wrapper around CheckboxListTile to use with reactive_forms. -version: 1.0.2 +version: 1.0.3 repository: https://github.com/artflutter/reactive_forms_widgets/tree/master/packages/reactive_checkbox_list_tile issue_tracker: https://github.com/artflutter/reactive_forms_widgets/issues