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

Wrong fields state after pop and unshift #21

Closed
maciejmyslinski opened this issue Jan 28, 2019 · 1 comment · Fixed by #33 or #34
Closed

Wrong fields state after pop and unshift #21

maciejmyslinski opened this issue Jan 28, 2019 · 1 comment · Fixed by #33 or #34

Comments

@maciejmyslinski
Copy link

maciejmyslinski commented Jan 28, 2019

Are you submitting a bug report or a feature request?

bug report

What is the current behavior?

We have an array of fruits.
Initial values are: ['', '']

Steps to reproduce:
  1. Modify field for Fruit Fix package naming #1 (eg. type 'orange')

  2. Click on `pop()` button

  3. Click on `unshift('apple')` button.

Fruit #1 is touched even though it was never focused
Fruit #2 is not touched even though it was focused and blurred.

What is the expected behavior?

I would expect Fruit #1 to have touched: false since it was never focused.
I would expect Fruit #2 to have touched: true since it was focused and blurred.

Sandbox Link

Edit 🐛 Wrong fields state after pop and unshift

What's your environment?

package version
final-form 4.11
react-final-form 4.0.2
final-form-arrays 1.1.0
react-final-form-arrays 2.0.1

Other information

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