Skip to content

If there are duplicate options, only the first one can be selected. #1

@dkurth

Description

@dkurth

Say you have a dropdown like this:

<select>
      <option value="1">first</option>
      <option value="2">second</option>
      <option value="3">first</option>
      <option value="4">second</option>
</select>

There is no way to select "first" with value "3". The onblur event loops over the options looking for a string match. Instead, each item in the <ul> should store its own index within the full list, and that should be used in the onblur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions