final-form / react-final-form-arrays

A component for rendering and editing arrays 🏁 React Final Form
MIT License
205 stars 70 forks source link

asynchronous field-level validation triggers validating when add/remove array items #168

Open jaryway opened 2 years ago

jaryway commented 2 years ago

Are you submitting a bug report or a feature request?

bug report

What is the current behavior?

field(firstName) valitdating state become true,when add/remove array item.

What is the expected behavior?

don't change field state when add/remove array item.

Sandbox Link

https://codesandbox.io/s/new-waterfall-vhlw2?file=/index.js

What's your environment?

{
    "final-form": "4.20.6",
    "final-form-arrays": "3.0.2",
    "react": 17.0.2",
    "react-dom": "17.0.2",
    "react-final-form": "6.5.7",
    "react-final-form-arrays": "3.1.3",
}

Other information

Form and FieldArray has already set to `subscription={{}}. how can i to stop validating firstName field.