Skip to content

Commit 3692b51

Browse files
committed
fix(form): commit field value to form even if the field doesn't exist
(cherry picked from commit 80b12cd)
1 parent 7236a5d commit 3692b51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/form/src/FormPresenter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export class FormPresenter<T extends GenericFormData = GenericFormData> {
104104
setFieldValue(name: string, value: unknown) {
105105
const field = this.formFields.get(name);
106106
if (!field) {
107+
this.commitValueToData(name, value);
107108
return;
108109
}
109110

0 commit comments

Comments
 (0)