When trying to write in a formik's Field component inside a react-bootstrap-table-next's BootstrapTable, after the first change to the value, it will lose focus, presumably react is re-rendering the whole Field.
Expected behavior
It should be possible to keep changing the value of a specific object's attribute inside an array without losing focus.
Reproducible example
To understand the problem check the first table on this CodeSandbox example.
The second table shows the workaround I implemented to make formik's props.values have the intended changes.
Additional context
Some of the code in that CodeSandbox may seem unnecessary (such as arrayHelpers, or the placement of the columns for BootstrapTable), but that is because the example is just a representation of what my project is using, those need to be there.
🐛 Bug report
Current Behavior
When trying to write in a formik's Field component inside a react-bootstrap-table-next's BootstrapTable, after the first change to the value, it will lose focus, presumably react is re-rendering the whole Field.
Expected behavior
It should be possible to keep changing the value of a specific object's attribute inside an array without losing focus.
Reproducible example
To understand the problem check the first table on this CodeSandbox example.
The second table shows the workaround I implemented to make formik's props.values have the intended changes.
Additional context
Some of the code in that CodeSandbox may seem unnecessary (such as arrayHelpers, or the placement of the columns for BootstrapTable), but that is because the example is just a representation of what my project is using, those need to be there.
Your environment