Skip to content

Commit

Permalink
Merge pull request #20 from nichcurtis/patch-1
Browse files Browse the repository at this point in the history
prevent button click from reloading page
  • Loading branch information
ivanvs committed Apr 1, 2018
2 parents fc01dbc + 4d81d5f commit 307fd4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class TwitterLogin extends Component {
this.onButtonClick = this.onButtonClick.bind(this);
}

onButtonClick() {
onButtonClick(e) {
e.preventDefault();
return this.getRequestToken();
}

Expand Down

0 comments on commit 307fd4f

Please sign in to comment.