From d5992f554caad7edeb77713be6eb130a28b3b7a6 Mon Sep 17 00:00:00 2001 From: Yasin Silavi Date: Wed, 16 Nov 2022 22:43:34 +0330 Subject: [PATCH] refactor: replace username old focus logic with the autofocus attribute --- frontend/src/views/Login.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/src/views/Login.vue b/frontend/src/views/Login.vue index 27bb5847..51e5d1cb 100644 --- a/frontend/src/views/Login.vue +++ b/frontend/src/views/Login.vue @@ -6,10 +6,10 @@
{{ error }}
@@ -71,8 +71,6 @@ export default { }; }, mounted() { - this.focusUsername(); - if (!recaptcha) return; window.grecaptcha.ready(function () { @@ -82,9 +80,6 @@ export default { }); }, methods: { - focusUsername() { - this.$refs.username.focus(); - }, toggleMode() { this.createMode = !this.createMode; },