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

TypeError: Cannot read property 'toUpperCase' of undefined --- when using labelExtractor with the autocomplete #1

Open
codekojo opened this issue Jul 23, 2021 · 0 comments

Comments

@codekojo
Copy link

codekojo commented Jul 23, 2021

How do I get the label from the autocomplete? For now I only get the value.

I use the labelExtractor for the autocomplete but I get "Cannot read property "toUpperCase" of undefined".

  1. labelExtractor={({ label }) => console.log('label', label)}

  2. labelExtractor={item => console.log(typeof item.label)}

@codekojo codekojo changed the title How to get the label TypeError: Cannot read property 'toUpperCase' of undefined --- when using labelExtractor with the autocomplete Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant