From 3a342803ef79da773e45c5d9105542d82bda57f7 Mon Sep 17 00:00:00 2001 From: Aditya Unnithan Date: Tue, 31 Oct 2023 17:31:17 +0000 Subject: [PATCH] Clean up --- src/components/button/button.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/button/button.js b/src/components/button/button.js index 5efd14886e..d499ff5d6e 100644 --- a/src/components/button/button.js +++ b/src/components/button/button.js @@ -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"); @@ -62,11 +63,4 @@ export default class SubmitButton { } } - linkButton(e) { - if (e.keyCode == 32) { - e.preventDefault(); - this.button.click(); - } - } - }