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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WithNextInputAutoFocusInput Formik children is not updating #156

Open
mm1221uu opened this issue Dec 14, 2020 · 0 comments
Open

WithNextInputAutoFocusInput Formik children is not updating #156

mm1221uu opened this issue Dec 14, 2020 · 0 comments

Comments

@mm1221uu
Copy link

the issue is that the children is not updating when i dynamically add new input fields to formik,

example

<Formik>
  <FormWrap>
    <Input/>
    {condition <Input/>}
  </Formik>
  <Button>
</FormWrap>

now when i finish typing in the second field the auto focus will jump to the first field which shouldn't happen,
what happen is that the children will allows be the first input, even after changing the condition to true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant