Skip to content

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

Description

@codekojo

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)}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions