Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 184c683

Browse files
🐛 FieldArray incorrect rerender
1 parent 12d02f2 commit 184c683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/useFieldArray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const useFieldArray = (
3838

3939
const validate: FieldValidator = useConstant(
4040
() => (value, allValues, meta) => {
41-
if (!validateProp) return undefined
41+
if (!validateProp) return meta.error;
4242
const error = validateProp(value, allValues, meta)
4343
if (!error || Array.isArray(error)) {
4444
return error

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /