react-hook-form 7.51.3 → 7.51.4
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.
- package/README.md +0 -4
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.mjs +1 -2
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/logic/createFormControl.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.mjs
CHANGED
@@ -2025,8 +2025,7 @@ function createFormControl(props = {}) {
|
|
2025
2025
|
};
|
2026
2026
|
const getValues = (fieldNames) => {
|
2027
2027
|
const values = {
|
2028
|
-
..._defaultValues,
|
2029
|
-
...(_state.mount ? _formValues : {}),
|
2028
|
+
...(_state.mount ? _formValues : _defaultValues),
|
2030
2029
|
};
|
2031
2030
|
return isUndefined(fieldNames)
|
2032
2031
|
? values
|