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

passing labelKey and valueKey into optionRenderer and valueRenderer #2407

Conversation

jiangweiliu-aa
Copy link

@jiangweiliu-aa jiangweiliu-aa commented Feb 28, 2018

Changes made:

Make valueRenderer and optionRenderer access labelKey and valueKey.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 94.98% when pulling 1c3c944 on jiangweiliu-aa:Passing_valueKey_and_labelKey_to_ValueRenderer_and_OptionRenderer into c9d0273 on JedWatson:master.

@jossmac jossmac added the v1 label Jul 4, 2018
@@ -568,7 +568,7 @@ class Select extends React.Component {
}

getOptionLabel (op) {
return op[this.props.labelKey];
return op.option[this.props.labelKey];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this (op.option) intended?

@flexdinesh
Copy link
Collaborator

Hey @jiangweiliu-aa v1 of react-select is no longer maintained.

Thanks for taking your time out to create this PR but since this PR has changes for v1, we cannot merge it right away. We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest versions.

We highly recommend upgrading from v1 to v2. Chances are this issue might already be fixed or non-existent in v2.

I'm closing this issue/PR now. Feel free add your thoughts in #3981 and reference this issue/PR if needed.

@flexdinesh flexdinesh closed this Mar 22, 2020
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.

4 participants