mobx-react-hook-form 5.2.1 → 5.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -397,7 +397,7 @@ export class Form {
397
397
  })(e);
398
398
  }
399
399
  else {
400
- const emptyData = {};
400
+ const emptyData = (this.values ?? {});
401
401
  const result = this.config.onSubmit?.(emptyData);
402
402
  if (result instanceof Promise) {
403
403
  return result.then(() => resolve(emptyData));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobx-react-hook-form",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],