Skip to content

Class 'is-selected' doesn't get added to selected options when multi=true #448

@a6hi5h3k

Description

@a6hi5h3k

Upon passing your own method in props for filterOptions to also show selected options in Dropdown for MultiSelect box, the class is-selected doesn't gets added to the option elements.
Following line in buildMenu() looks to be rogue which could be fixed.

var isSelected = this.state.value === op.value;

The value in state is a comma-separted string of values here, which will always fail this check.

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