Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

When adding a new item in ArrayList, yup's test is called with an undefined value in Formik v2 #2197

Open
lourenci opened this issue Jan 13, 2020 · 0 comments
Labels

Comments

@lourenci
Copy link

馃悰 Bug report

Current Behavior

When adding a new item in ArrayList, yup's test is called with an undefined value. This is not true on 1.5.8 version.

Expected behavior

According to the 1.5.8 version, the test should be being called with an empty value.

Reproducible example

Try to add a new item in an ArrayField and see the errors in the console.

The same example in both Formik's version:
1.5.8 - not showing errors in the console

2.1.1 - showing errors in the console

Your environment

Software Version(s)
Formik 2.1.1
React 16.12.0
@lourenci lourenci changed the title When adding a new item in ArrayList, yup's test is called with an undefined value When adding a new item in ArrayList, yup's test is called with an undefined value in Formik v2 Jan 13, 2020
@stale stale bot added the stale label Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant