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

Remove modifies other's inputs state #22

Closed
maciejmyslinski opened this issue Jan 28, 2019 · 1 comment
Closed

Remove modifies other's inputs state #22

maciejmyslinski opened this issue Jan 28, 2019 · 1 comment

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 links to package #2.

  2. Click outside Fruit Fix links to package #2 field. It's state becomes touched: true

  3. click remove(0).

Field state touched is false

What is the expected behavior?

Field state touched should remain true

Sandbox Link

Edit 🐛 Remove modifies other input's state

What's your environment?

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

Other information

@erikras
Copy link
Member

erikras commented Jul 15, 2019

Fixed in [email protected] and [email protected].

Edit 🐛 Remove modifies other input's state

@erikras erikras closed this as completed Jul 15, 2019
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

2 participants