-
-
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 does not like primitive values #3249
Labels
Comments
viktor-nikolaev
added a commit
to viktor-nikolaev/react-admin
that referenced
this issue
May 20, 2019
Created PR #3250 |
Are there any easy way to override this method ( |
Closed
I'm hitting this issue now. Is there any interest in firing up the PR again, or a suitable workaround? I just want to have an array of URLs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened instead:
Steps to reproduce:
I have this form
Note - I don't have source prop in
TextInput
.And here what I see in the browser
The problem is with this line:
react-admin/packages/ra-ui-materialui/src/form/SimpleFormIterator.js
Line 102 in 5d2a88d
If we make it just
fields.push();
everything would work as expected, even for complex objects (ie with fields withsource
props)CodeSandbox
https://codesandbox.io/s/simple-cwjuz
Here is the form with array input: https://cwjuz.codesandbox.io/#/tags/5
Other information:
A question on this topic https://stackoverflow.com/questions/51468966/react-admin-array-input-with-array-of-strings-numbers
Environment
The text was updated successfully, but these errors were encountered: