Skip to content

Commit

Permalink
馃Н close #5440 remove extra value update (#5442)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebill1049 committed Jun 2, 2021
1 parent 8989120 commit b2717e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/__tests__/useForm/__snapshots__/register.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ Object {
"name": "test",
"ref": Object {
"name": "test",
"value": Array [
true,
false,
false,
],
},
"value": Array [
false,
Expand Down
1 change: 0 additions & 1 deletion src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,6 @@ export function useForm<
},
});
fieldsNamesRef.current.add(name);
!field && updateValidAndValue(name);

return isWindowUndefined
? ({ name: name as InternalFieldName } as UseFormRegisterReturn)
Expand Down

0 comments on commit b2717e0

Please sign in to comment.