Skip to content
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

[AutoComplete] Can't convert object to string error when option has object as value #20057

Closed
BjoernRave opened this issue Mar 10, 2020 · 1 comment
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module!

Comments

@BjoernRave
Copy link

When providing options to the autocomplete, where values are objects, it throws the Can't convert object to string error.

The error occurrs in the useAutocomplete file in the defaultStringify function.

The function should maybe use recursion to convert all existing objects.

Tech Version
Material-UI v4.9.5
@oliviertassinari oliviertassinari added the component: autocomplete This is the name of the generic UI component, not the React module! label Mar 15, 2020
@oliviertassinari
Copy link
Member

@BjoernRave Thanks for the report, it should have been solved with #19974. We will soon release it :)

@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label Mar 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

2 participants