I am using select component in formik to display multiples fields, but there is a key error.
My code snippet: https://codesandbox.io/s/loving-shirley-r0jlh?file=/src/income-info.jsx
Steps to reproduce:
- Try to select some value and click "add" button
- Select some value in the next one
- Click the "remove" button in the first item and change select value in the remaining item
- At this step you can see the new item added (this is unexpected behavior) and errors in the console