-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AutocompleteArrayInput chip not displaying as expected #5813
Comments
Hi and thanks for the report. I can't reproduce this issue on the simple example though. So unless you can provide a codesandbox showing the issue, I'll assume the problem is in your code and will close the issue |
I'll see if I can put an example together to repro this issue |
I don't know if it's related, but I have a different issue on my own, with the same duo When I select an option, it's throwing me an error.
I keep investigating on my own, and I'll probably create another issue. Edit |
No news for some time, closing. |
FWIW, I ended up tracking this down to being me stupidly returning the id array as an array of strings, not an array of integers.
should be So even though the request gets made to get the data, for some odd reason its not populated in the chip text. Assuming that has something to do with the autocomplete matcher code. |
What you were expecting:
When editing an item that uses AutocompleteArrayInput wrapped inside ReferenceArrayInput, the chip will display correctly.
What happened instead:
The chip works when selecting from the list, however when loading the page the chip is blank
Steps to reproduce:
Unable to provide a sample application
Related code:
Use of ReferenceArrayInput and AutocompleteArrayInput as follows:
When editing an item, the API calls are made as expected:
A subsequent API call is made to
assets?id=25
, which returns (truncated for brevity):However, what I see in the UI is as follows:

Noting that the autocomplete list works:

And if I select something from the list, the chip is displayed correctly:

Other information:
Environment
The text was updated successfully, but these errors were encountered: