Skip to content

Commit

Permalink
Revert "✨ feat(values): priorities values over defaultvalues (#11399)" (
Browse files Browse the repository at this point in the history
#11545)

This reverts commit a0583ff.
  • Loading branch information
bluebill1049 committed Feb 24, 2024
1 parent b6bbd8a commit 2d58212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logic/createFormControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export function createFormControl<
};
let _fields: FieldRefs = {};
let _defaultValues =
isObject(_options.values) || isObject(_options.defaultValues)
? cloneObject(_options.values || _options.defaultValues) || {}
isObject(_options.defaultValues) || isObject(_options.values)
? cloneObject(_options.defaultValues || _options.values) || {}
: {};
let _formValues = _options.shouldUnregister
? {}
Expand Down

0 comments on commit 2d58212

Please sign in to comment.