We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a9323a commit d83bc77Copy full SHA for d83bc77
examples/commentsBox/js/app.js
@@ -28,8 +28,8 @@ var CommentList = React.createClass({
28
29
30
var CommentForm = React.createClass({
31
- handleSubmit: function() {
32
- event.preventDefault();
+ handleSubmit: function(e) {
+ e.preventDefault();
33
var author = this.refs.author.getDOMNode().value.trim();
34
var text = this.refs.text.getDOMNode().value.trim();
35
this.props.onCommentSubmit({author: author, text: text});
0 commit comments