Skip to content

Commit

Permalink
form onSubmit instead of onClick (bukinoshita#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukinoshita committed Nov 22, 2017
1 parent 46916e1 commit d222cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Home extends Component {

return (
<Page>
<form onClick={this.onSubmit}>
<form onSubmit={this.onSubmit}>
<textarea
placeholder="Your secret..."
name="message"
Expand Down

0 comments on commit d222cb6

Please sign in to comment.