-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArrayInput with FormDataConsumer does not accept Fields #5394
Comments
Thanks for reporting. Looks like a bug indeed. |
The documentation is wrong, you don't need to use <ArrayInput source="backlinks">
<SimpleFormIterator disableRemove>
<DateInput source="date" />
<FormDataConsumer>
{({ getSource, scopedFormData }) => <TextField source="id" record={scopedFormData} /> }}
</FormDataConsumer>
</SimpleFormIterator>
</ArrayInput> But if you do that, the |
@djhi
i tried adding backlinks while creating a new post and then clicked on edit that post ,now backlink id TextField value is showing |
I don't think this is neither a bug not a documentation issue. The problem is that the |
This has been clarified in version 4.6 (#8445) |
With the release of react-admin v5, react-admin v3 has reached its end of life. We won't fix bugs or make any new release on the 3.x branch. We recommend that you switch to a more recent version of react-admin. So I'm closing this issue as we won't fix it. |
What you were expecting:
That the example of the documentation of ArrayInput with FormDataConsumer works: https://marmelab.com/react-admin/Inputs.html#arrayinput
What happened instead:
No Fields or CustomFields are shown, only React Admin Inputs are shown.
Steps to reproduce:
Related code:
Added this to the Edit of Post.
If you change TextField to TextInput it works as expected, but I want my own Field or CustomFields.
Environment
When you click on add:
client-hook-3.js:1 Warning: Each child in a list should have a unique "key" prop.
Check the render method of
SimpleFormIterator
.The text was updated successfully, but these errors were encountered: