Skip to content

Active selection should be by name, not numerical index #2

@Tectract

Description

@Tectract

Hi there,

I noticed with this plugin, you need to specify:

options={['option0', 'option1', 'option2']}
active={this.state.selectedOption}

Here, you actually need to specify the numerical INDEX of the selection you want, which means I need to do some funky logic to get the indices at runtime. It would be much nicer if I could specify instead "option1" instead of "1" as the active entry here instead.

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