Skip to content

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

@codekojo

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

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