Skip to content

How could the multiply select should NOT remove the options from dropdown list? #5245

Answered by manjushsh
nazarpelekh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @nazarpelekh this can be easily achieved by passing hideSelectedOptions={false} to Select component.

I'm trying to do a multiply select

as in?

Code Sandbox

Code:

<Select
        defaultValue={[colourOptions[2], colourOptions[3]]}
        isMulti
        name="colors"
        options={colourOptions}
        className="basic-multi-select"
        classNamePrefix="select"
        menuIsOpen
        hideSelectedOptions={false}
      />

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nazarpelekh
Comment options

Answer selected by nazarpelekh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants