redux-form/redux-form

All FieldArray elements become dirty if one of them is dirty

Open

#4.007 geöffnet am 26. Apr. 2018

Auf GitHub ansehen
 (3 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)JavaScript (12.592 Stars) (1.683 Forks)batch import
Version 7bughelp wanted

Beschreibung

bug report

What is the current behavior?

Look at the following demo (forked from FieldArray demo): https://codesandbox.io/s/2jxlql8m40

  1. All members array items are not dirty
  2. Change Member1 First Name
  3. All members array items are dirty now "members[0]", "members[1]"

What is the expected behavior?

Only members[0] should be dirty in this case.

Sandbox Link

https://codesandbox.io/s/2jxlql8m40

What's your environment?

Redux Form 7.3.0 MacOS High Sierra Google Chrome 66

Contributor Guide