Skip to content

Commit

Permalink
fix(form): commit field value to form even if the field doesn't exist
Browse files Browse the repository at this point in the history
(cherry picked from commit 80b12cd)
  • Loading branch information
Pavel910 committed Dec 12, 2024
1 parent 7e37ccb commit 7b2e8e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/form/src/FormPresenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export class FormPresenter<T extends GenericFormData = GenericFormData> {
setFieldValue(name: string, value: unknown) {
const field = this.formFields.get(name);
if (!field) {
this.commitValueToData(name, value);
return;
}

Expand Down

0 comments on commit 7b2e8e4

Please sign in to comment.