mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 17:18:19 +08:00
UX: restore autofocus on login inputs (#12266)
This commit is contained in:
parent
83f332b5a5
commit
e180f3f97a
|
@ -13,7 +13,7 @@
|
|||
<form id="login-form" method="post">
|
||||
<div id="credentials" class={{credentialsClass}}>
|
||||
<div class="input-group">
|
||||
{{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"}}
|
||||
<label class="alt-placeholder" for="login-account-name">{{i18n "login.email_placeholder"}}</label>
|
||||
{{#if showLoginWithEmailLink}}
|
||||
<a href id="email-login-link" {{action (unless processingEmailLink "emailLogin")}}>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
{{#if emailValidated}}
|
||||
<span class="value">{{accountEmail}}</span>
|
||||
{{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"}}
|
||||
<label class="alt-placeholder" for="new-account-email">
|
||||
{{i18n "user.email.title"}}
|
||||
{{~#if userFields~}}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<form id="login-form" method="post">
|
||||
<div id="credentials" class={{credentialsClass}}>
|
||||
<div class="input-group">
|
||||
{{input value=loginName type="email" id="login-account-name" class=(value-entered loginName) autocomplete="username" autocorrect="off" autocapitalize="off" disabled=showSecondFactor}}
|
||||
{{input value=loginName type="email" id="login-account-name" class=(value-entered loginName) autocomplete="username" autocorrect="off" autocapitalize="off" disabled=showSecondFactor autofocus="autofocus"}}
|
||||
<label class="alt-placeholder" for="login-account-name">{{i18n "login.email_placeholder"}}</label>
|
||||
{{#if showLoginWithEmailLink}}
|
||||
<a href id="email-login-link" {{action (unless processingEmailLink "emailLogin")}}>
|
||||
|
|
Loading…
Reference in New Issue
Block a user