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

Fix ReactDOMFiberSelect to set the initial values #8349

Merged
merged 1 commit into from Nov 18, 2016

Conversation

sebmarkbage
Copy link
Collaborator

I forgot that the normal properties route doesn't do this. We also have to make sure that the order is 1) insert children (options), 2) set multiple 3) update the options.

I forgot that the normal properties route doesn't do this. We also have
to make sure that the order is 1) insert children (options), 2) set
multiple 3) update the options.
@sophiebits
Copy link
Collaborator

k

@@ -153,6 +153,13 @@ var ReactDOMSelect = {
);
didWarnValueDefaultValue = true;
}

node.multiple = Boolean(props.multiple);
if (value != null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: inconsistent style between value/defaultValue

Copy link
Collaborator

Choose a reason for hiding this comment

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

never mind

@sebmarkbage sebmarkbage merged commit 0deb712 into facebook:master Nov 18, 2016
acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
I forgot that the normal properties route doesn't do this. We also have
to make sure that the order is 1) insert children (options), 2) set
multiple 3) update the options.
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