Comments (7)
ohhhh... I may have figured it out...
from react-final-form-arrays.
yup false alarm, you got lucky this time ;)
thanks again for all of the awesome work
from react-final-form-arrays.
Will you post your solution so people who are finding this knows what to do?
from react-final-form-arrays.
Yes @tn3rb your solution would have been great as I am running into the same issue
from react-final-form-arrays.
I think the problem was to call ArrayMutators.push directly, when you do it like this:
<Form
initialValues={values}
onSubmit={this.handleSubmit}
mutators={{
// potentially other mutators could be merged here
...arrayMutators
}}
>
{({
handleSubmit,
form: {
mutators: { push }
}
}) => {
return (
<form
id="contact-form"
onSubmit={handleSubmit}
ref={f => (this.formRef = f)}
>
it solves it
from react-final-form-arrays.
I am still facing this error can anyone help me out
from react-final-form-arrays.
my apologies to everyone for not posting my solution.
I don't even remember what it was exactly but I do know that it had nothing to do with React Final Form and so would not have been relevant to anyone else's situation.
from react-final-form-arrays.
Related Issues (20)
- Loosing Focus While Typing On Custom Input Field HOT 1
- FieldArray wrapped in `div` not updating parent form HOT 1
- Conditionally visible FieldArrays pushing to wrong field HOT 3
- FieldArray should have a beforeSubmit prop HOT 1
- Cannot read property 'validators' of undefined" in final-form when change version of final-form-arrays HOT 1
- 'removeBatch' HOT 1
- Cannot set a numeric property on an object HOT 1
- FieldArray validate does not work with an initial row in initialValues HOT 1
- Missing field *length* in flow type in *fields*
- `form.getFieldState` is corrupted after removing element `arrays.remove`
- TypeError: Cannot read properties of undefined (reading 'active') HOT 7
- asynchronous field-level validation triggers validating when add/remove array items
- Update peerDependencies to support React 18 HOT 6
- `useFieldArray`: `mutators` always take name from closure of the first render. HOT 1
- Unused type argument in FieldArrayRenderProps
- Meta.active and meta.touched always undefined?
- Asynchronous `validate` prop of `FieldArray` put unresolved promise as `FINAL_FORM/array-error` instead of resolved value HOT 1
- `concat` mutator for bulk adding?
- Field Value Keys are dropped if field is empty
- `removeBatch` and `concat` are missing in type definitions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-final-form-arrays.