From e180f3f97ae613c10628c4de9babb73982ff0b18 Mon Sep 17 00:00:00 2001 From: Kris Date: Tue, 2 Mar 2021 14:30:53 -0500 Subject: [PATCH] UX: restore autofocus on login inputs (#12266) --- .../javascripts/discourse/app/templates/mobile/modal/login.hbs | 2 +- .../discourse/app/templates/modal/create-account.hbs | 2 +- app/assets/javascripts/discourse/app/templates/modal/login.hbs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/mobile/modal/login.hbs b/app/assets/javascripts/discourse/app/templates/mobile/modal/login.hbs index 3e9721811aa..79aa1fabd10 100644 --- a/app/assets/javascripts/discourse/app/templates/mobile/modal/login.hbs +++ b/app/assets/javascripts/discourse/app/templates/mobile/modal/login.hbs @@ -13,7 +13,7 @@
- {{input value=loginName class=(value-entered loginName)type="email" id="login-account-name" autocorrect="off" autocapitalize="off" disabled=showSecondFactor}} + {{input value=loginName class=(value-entered loginName) type="email" id="login-account-name" autocorrect="off" autocapitalize="off" disabled=showSecondFactor autofocus="autofocus"}} {{#if showLoginWithEmailLink}} diff --git a/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs b/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs index 0b7eb81f01d..20fa75757b4 100644 --- a/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs +++ b/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs @@ -25,7 +25,7 @@ {{#if emailValidated}} {{accountEmail}} {{else}} - {{input type="email" value=accountEmail id="new-account-email" name="email" class=(value-entered accountEmail)}} + {{input type="email" value=accountEmail id="new-account-email" name="email" class=(value-entered accountEmail) autofocus="autofocus"}}