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

[V2] Add meta to onChange when isMulti #2717

Merged
merged 1 commit into from
Jun 27, 2018

Conversation

SimeonC
Copy link
Contributor

@SimeonC SimeonC commented Jun 18, 2018

In the case of using isMulti and especially with hideSelectedOptions = false (for deselect) the action meta should include the option that is being selected/deselected.

This is kind of an extension of #2637. Only applies to isMulti.

In the case of using isMulti and ecspecially with `hideSelectedOptions = false` the action meta should include the option that is being selected/deselected.
@gwyneplaine gwyneplaine added the v2 label Jun 19, 2018
@gwyneplaine gwyneplaine changed the title Add meta to onChange when isMulti [V2] Add meta to onChange when isMulti Jun 19, 2018
@gwyneplaine
Copy link
Collaborator

@JedWatson this seems like a viable solution to me, but wanted to sanity check potentially loading the actionMeta with conditional values like this with you.

@JedWatson
Copy link
Owner

@gwyneplaine looks good to me, this is a valid use of what action meta was intended for

@SimeonC thanks for the PR, and the new tests as well!

@JedWatson JedWatson merged commit 3340908 into JedWatson:v2 Jun 27, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants