Skip to content

Dropdown ignores optionLabel #8240

@Junckgui

Description

@Junckgui

It appears that the fix for the bug Dropdown ignores optionValue #6822 reported in version 10.7 and resolved in version 10.8 has damaged the optionLabel.

Example:
<Dropdown options={['one', 'two', 'three']} optionLabel={(option) => t(option)} … />

In this example, I expect to see the translation of each option as in version 10.7, but since version 10.8, I see the option itself (without any translation or other processing).

Thanks for your help/fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions