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

Submit does not work when <Field /> changes name and have formatOnBlur #695

Closed
gbiryukov opened this issue Dec 12, 2019 · 1 comment
Closed

Comments

@gbiryukov
Copy link
Contributor

Are you submitting a bug report or a feature request?

Bug report

What is the current behavior?

Form submit throws error Cannot read property 'value' of undefined when form have field with dynamically changed name and specified formatOnBlur={true}

Steps to reproduce:

  1. open sandbox link
  2. click "use phone"
  3. fill anything into input
  4. click submit

What is the expected behavior?

Form submit just works

Sandbox Link

https://codesandbox.io/s/usefield-obsolete-context-qvvuy

What's your environment?

react-final-form@6.3.3
final-form@4.18.6
react@16.12.0

gbiryukov added a commit to gbiryukov/react-final-form that referenced this issue Dec 12, 2019
@erikras
Copy link
Member

erikras commented Jan 22, 2020

Published fix in v6.3.4.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants