react-hook-form 7.0.6 → 7.0.7

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/dist/index.esm.js CHANGED
@@ -1181,7 +1181,7 @@ function useForm({ mode = VALIDATION_MODE.onSubmit, reValidateMode = VALIDATION_
1181
1181
  defaultValue = isUndefined(field._f.value)
1182
1182
  ? useFormDefaultValue
1183
1183
  : field._f.value;
1184
- if (!isUndefined(defaultValue)) {
1184
+ if (!isNullOrUndefined(defaultValue)) {
1185
1185
  setFieldValue(name, defaultValue);
1186
1186
  }
1187
1187
  }