Skip to content

Duplicate option key generated when entered value is the same as one of the options  #421

Description

@akum32

If i start typing '1' and options returned are: [{name: "Option 1", value: 1}, {name: "Option 2", value: 2}], when the menu is built the same key is used for the 'Add 1?' and 'Option 1'. This results in the results never showing 'Option 1'.

Hence I think there should probably be a check to ensure the 'Add xxx?' doesn't appear when there is an exact match. What do you think?

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