From 26d1ac1f1f3611cd721948b250a5e1cc6fc24c04 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Tue, 17 Aug 2021 00:49:11 +0000 Subject: [PATCH] Autofocus only additional email inputs Signed-off-by: Christopher Ng (cherry picked from commit f7dee7152adde567571712f8bfe158135764ad7a) --- .../settings/src/components/PersonalInfo/EmailSection/Email.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue index 2c6d34b44f3..faca83821e2 100644 --- a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue +++ b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue @@ -150,7 +150,7 @@ export default { }, mounted() { - if (this.initialEmail === '') { + if (!this.primary && this.initialEmail === '') { this.$nextTick(() => this.$refs.email?.focus()) } },