-
-
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
AutocompleteArrayInput inside ReferenceArrayInput #2477
Comments
If you are able to illustrate the bug or feature request with an example, please provide a sample application via one of the following means:
|
Same issue here |
having same issues. |
I think error is coming from autocompletearrayinput, in input.value when it is initializing for first time and it's default value is null, not [], so when its adding first item input.value is not an array its a single value, i've fixed this issue by editing autocompletearrayinput.js and force input.value to be an array by adding this line: |
for a temporary hot fix replace node_modules\ra-ui-materialui\esm\input\AutocompleteArrayInput.js with flowing codes:
|
@Masoodt Thanks for the tip! I found a simpler fix: add |
Again, we can't fix the issue if you don't provide a clear way to reproduce it. Please add more details (code sample, CodeSandbox). |
@kuler90 your solution doesn't work for me @Masoodt your code update is good! And this component finally working! Thanks ;) |
@Mattin I'm glad to hear that. |
@fzaninotto @djhi it can be replicated when you go to |
Fixed by #2616 |
@fzaninotto Hello, I have this issue with react-admin 3.6.3 Code: Note: copros_monday resource api returns good data (array of objects) so it does not come from that Stacktrace: |
@francoisruty Please upgrade to the latest version |
@djhi OK, I did so and I confirm it's fixed |
AutocompleteArrayInput inside ReferenceArrayInput causes error with flowing report:
TypeError: selectedIds.forEach is not a function
The text was updated successfully, but these errors were encountered: