Skip to content

Feature request: in multi-selects with closeOnSelect=false, don't remove selected options from the menu #233

@david-mears-2

Description

@david-mears-2

I have a multi-select with closeOnSelect set to false. My intention is for the user to be able to see all available options, including those they have already selected, in the menu, which, instead of closing, updates its appearance when options are selected. I will style the selected options differently from unselected, using the options slot (probably with a checkbox).

I tried using the displayedOptions prop (passing it all the options at all times) but it didn't seem to make a difference; I think it might be intended for a different purpose. (I'm not raising a 'bug' report since my version is older, v0.8.0, and I think it might be expected behaviour). I think I was expecting displayedOptions to replace the implicit built-in filter on the menu options that makes it only show unselected options (in the case of multi-selects), but now I instead suspect it's intended to do its filtration at an earlier stage, changing what options are possible to be displayed (rather than setting which options are actually displayed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions