Skip to content

Add an example argument to the Simulate.change method #2524

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

Closed
wants to merge 1 commit into from

Conversation

msujaws
Copy link

@msujaws msujaws commented Nov 14, 2014

The previous documentation didn't make it clear that the new value of the node should be passed as an extra argument to .change(). It was easy to think that prior to calling change(), one must use the node.value setter (which is wrong and doesn't cause the onChange handler to get called).

The previous documentation didn't make it clear that the new value of the node should be passed as an extra argument to .change(). It was easy to think that prior to calling change(), one must use the node.value setter (which is wrong and doesn't cause the onChange handler to get called).
@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 - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@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!

@zpao
Copy link
Member

zpao commented Nov 26, 2014

I missed that this came in before #2544, but it looks like somebody else had the same idea. Definitely let me know if there are any other things we can do to improve the docs Jared :)

@zpao zpao closed this Nov 26, 2014
@msujaws
Copy link
Author

msujaws commented Nov 26, 2014

Stealing my ideas.... :-P

@msujaws msujaws deleted the patch-1 branch November 28, 2014 03:58
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