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 issue 12939 #12954

Closed
wants to merge 1 commit into from
Closed

Fix issue 12939 #12954

wants to merge 1 commit into from

Conversation

whs-dot-hk
Copy link

@whs-dot-hk whs-dot-hk commented May 31, 2018

This fix only broke one test, which I think is acceptable

it('sets type, step, min, max before value always', () => {

The demo is here
https://whs-dot-hk.github.io/react-bug-12926-test/

The input range didn't receive a correct value.

e.g. For, <input type="range" min="0" max="10" value="0" />,
the value will be set to 10 in react.

Setting hostProps' value to '',
which happened to be before before everything
i.e. before the value tracker initialize
fix the whole problem
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

"size": 210769,
"gzip": 36828
"size": 210616,
"gzip": 36800
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please revert changes to this file

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@aweary
Copy link
Contributor

aweary commented May 31, 2018

Thanks, but this is already being worked on in #12939

@aweary aweary closed this May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants