From 792dad676796c32cc01ff1589088ab7b851875a5 Mon Sep 17 00:00:00 2001 From: Jay Landro Date: Fri, 8 Apr 2016 17:45:16 -0500 Subject: [PATCH] Update app.js Passed event into handleSubmit, removed return false. --- examples/commentsBox/js/app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/commentsBox/js/app.js b/examples/commentsBox/js/app.js index 02bad44..584feef 100644 --- a/examples/commentsBox/js/app.js +++ b/examples/commentsBox/js/app.js @@ -28,14 +28,13 @@ var CommentList = React.createClass({ var CommentForm = React.createClass({ - handleSubmit: function(e) { - e.preventDefault(); + handleSubmit: function(event) { + event.preventDefault(); var author = this.refs.author.getDOMNode().value.trim(); var text = this.refs.text.getDOMNode().value.trim(); this.props.onCommentSubmit({author: author, text: text}); this.refs.author.getDOMNode().value = ''; this.refs.text.getDOMNode().value = ''; - return false; }, render: function() {