You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
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
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".
labelExtractor={({ label }) => console.log('label', label)}
labelExtractor={item => console.log(typeof item.label)}
The text was updated successfully, but these errors were encountered: