Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
adi-unni committed Oct 31, 2023
1 parent 2388d94 commit 3a34280
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/button/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default class SubmitButton {
this.button.classList.add("active");
}
}

linkButtonUp(e){
if (e.keyCode == 32 || e.keyCode == 13) {
this.button.classList.remove("active");
Expand All @@ -62,11 +63,4 @@ export default class SubmitButton {
}
}

linkButton(e) {
if (e.keyCode == 32) {
e.preventDefault();
this.button.click();
}
}

}

0 comments on commit 3a34280

Please sign in to comment.