Skip to content

Commit c7ceb19

Browse files
committed
Use current value instead of initialValue for GroupedRadio and GroupedCheckbox
1 parent 3630425 commit c7ceb19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/fields/form_builder_checkbox_group.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class FormBuilderCheckboxGroup<T> extends FormBuilderField<List<T>> {
6363
),
6464
child: GroupedCheckbox(
6565
orientation: orientation,
66-
value: initialValue,
66+
value: field.value,
6767
options: options,
6868
onChanged: (val) {
6969
field.didChange(val);

lib/src/fields/form_builder_radio_group.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class FormBuilderRadioGroup<T> extends FormBuilderField<T> {
6060
),
6161
child: GroupedRadio(
6262
orientation: orientation,
63-
value: initialValue,
63+
value: state.value,
6464
options: options,
6565
onChanged: (val) {
6666
state.requestFocus();

0 commit comments

Comments
 (0)