Skip to content

Commit

Permalink
fix: respect initial value on field re-creation, from formbuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
nvshah committed Jun 15, 2024
1 parent 3a2292c commit 38e1a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/form_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class FormBuilderState extends State<FormBuilder> {
field.registerTransformer(_transformers);

field.setValue(
(_instantValue[name] = field.initialValue ?? _instantValue[name]),
(_instantValue[name] = field.initialValue ?? initialValue[name]),
populateForm: false,
);
}
Expand Down

0 comments on commit 38e1a9e

Please sign in to comment.