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

Including missing validation check #2078

Merged
merged 2 commits into from
Aug 22, 2014
Merged

Conversation

michaelrp
Copy link
Contributor

The validation check was removed from the update to the CommentForm handleSubmit function.

The validation check was removed from the update to the CommentForm handleSubmit function.
@chenglou
Copy link
Contributor

returning false from an event handler is getting deprecated (#2039). Can you take this occasion to change it to a e.preventDefault at the beginning of the handler, and plain return; in both places? Thanks.

(Also, please submit the change here too: https://github.com/reactjs/react-tutorial/blob/master/scripts/example.js)

Also added plain `return`, updated text.
@michaelrp
Copy link
Contributor Author

Both done and also updated sample script.

@chenglou
Copy link
Contributor

Cool. You just need the CLA now! =)

@michaelrp
Copy link
Contributor Author

Done!

@chenglou
Copy link
Contributor

Thanks!

chenglou added a commit that referenced this pull request Aug 22, 2014
Including missing validation check
@chenglou chenglou merged commit 174e675 into facebook:master Aug 22, 2014
@michaelrp michaelrp deleted the patch-1 branch August 22, 2014 19:04
chenglou added a commit that referenced this pull request Sep 3, 2014
Including missing validation check
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.

2 participants