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 d83bc77 commit 792dad6Copy full SHA for 792dad6
examples/commentsBox/js/app.js
@@ -28,14 +28,13 @@ var CommentList = React.createClass({
28
29
30
var CommentForm = React.createClass({
31
- handleSubmit: function(e) {
32
- e.preventDefault();
+ handleSubmit: function(event) {
+ event.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});
36
this.refs.author.getDOMNode().value = '';
37
this.refs.text.getDOMNode().value = '';
38
- return false;
39
},
40
41
render: function() {
0 commit comments