jaredpalmer/formik

Array-helper `insert` adds value to error state

Ouverte

#1 092 ouverte le 8 nov. 2018

 (5 commentaires) (3 réactions) (0 personne assignée)TypeScript (2 801 forks)batch import
Priority: MediumType: Bughelp wantedpinned

Métriques du dépôt

Stars
 (34 255 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

🐛 Bug report

Current Behavior

When i add an item to a FieldArray using insert the value is also inserted into the errors state (see example below).

Expected behavior

Only insert the value to the values state, not to the errors state.

Reproducible example

https://codesandbox.io/s/v87n4p6023

Your environment

Software Version(s)
Formik 1.3.1
React 16.5.2

Guide contributeur