Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unnecessary preventDefault
  • Loading branch information
jphager2 committed Jan 1, 2018
1 parent e7802de commit a7637e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/MangaDetail.js
Expand Up @@ -39,8 +39,6 @@ class MangaDetail extends Component {
update(e) {
const button = e.target;

e.preventDefault();

if (button.classList.contains('loading')) { return; }

button.classList.add('loading');
Expand Down
2 changes: 0 additions & 2 deletions src/MangaList.js
Expand Up @@ -30,8 +30,6 @@ function updatePoll(button) {
function update(e) {
const button = e.target;

e.preventDefault();

if (button.classList.contains('loading')) { return; }

button.classList.add('loading');
Expand Down

0 comments on commit a7637e6

Please sign in to comment.