Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
a6hi5h3k opened this issue Sep 16, 2015 · 1 comment
Closed

Comments

@a6hi5h3k
Copy link

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.

@gwyneplaine
Copy link
Collaborator

Resolved in 2.x.x

Closing this issue, if for some reason you feel that what I've described above doesn't correctly address your problem, please feel free to create a new issue. Mostly doing this for clarity ad to reduce our issues list down to a sane and relevant number of actionable tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants