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

FieldArray is never pristine again #25

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

FieldArray is never pristine again #25

maciejmyslinski opened this issue Jan 28, 2019 · 1 comment

Comments

@maciejmyslinski
Copy link

Are you submitting a bug report or a feature request?

bug report

What is the current behavior?

When empty '' initial value is present, Array Fields are never pristine again like normal Fields.

Steps to reproduce:

  1. Enter some value into the usual field, then revert the change. The field is pristine.
  2. Enter some value into Fruit Fix package naming #1 field. Revert the change. The field is pristine.
  3. Enter some value into Fruit Fix links to package #2 field. Revert the change. The field is NOT pristine.

What is the expected behavior?

I would expect Fruit #2 field to be pristine.

Sandbox Link

Edit 🐛 Field Array never pristine again

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

This is stemming from similar undefined/'' confusion as discussed here. #23 (comment) Not a bug.

@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