Skip to content

Keep selected option index after selecting value in multiselect #4370

@5ebastianMeier

Description

@5ebastianMeier

Use Case

We have a multiselect control that is designed to select multiple users in succession. Currently this can be tedious because after selecting an option, the former selected position gets reset to start at the first option.

Example

  • We have 10 entries (called 1 to 10)
  • We move the selection to option 5 and press enter
  • Option 5 gets selected and gets hidden from the options
  • Now the selection is automatically moved to option 1, but I'd like to have the ability to let it automatically move to option 6 instead

Let's say you wanted to add option 6, 7 and 8.

With this new feature you could just navigate to 6 using the arrow keys and the press tab or enter thrice.
Without the feature you would have to navigate back to the next option after each individuell tab or enter press.

I couldn't find a working example in the wild, but I think the intention is pretty straight forward. If not, I'll gladly provide more insight.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions