From 2b2c1085fb50ad68612ad438e527fd316d8aafee Mon Sep 17 00:00:00 2001 From: Yasin Silavi <59373143+sttatusx@users.noreply.github.com> Date: Fri, 25 Nov 2022 14:56:07 +0330 Subject: [PATCH] refactor: replace username old focus logic with the autofocus attribute (#2223) --- 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; },