Просмотр исходного кода

Merge pull request #5110 from overleaf/jpa-de-ng-autofocus

[web] use HTML5 autofocus flag on all the input fields

GitOrigin-RevId: 9a984abf09d5cd098f19c3d8c731961e881903c4
Jakob Ackermann 5 лет назад
Родитель
Сommit
780d5ca184

+ 1 - 1
services/web/app/views/user/login.pug

@@ -20,7 +20,7 @@ block content
 									name='email',
 									required,
 									placeholder='email@example.com',
-									focus="true"
+									autofocus="true"
 								)
 							.form-group
 								input.form-control(

+ 3 - 3
services/web/modules/launchpad/app/views/launchpad.pug

@@ -56,7 +56,7 @@ block content
 														required,
 														ng-model="email",
 														ng-model-options="{ updateOn: 'blur' }",
-														focus="true"
+														autofocus="true"
 													)
 													span.small.text-primary(ng-show="registerForm.email.$invalid && registerForm.email.$dirty")
 														| #{translate("must_be_email_address")}
@@ -100,7 +100,7 @@ block content
 														required,
 														ng-model="email",
 														ng-model-options="{ updateOn: 'blur' }",
-														focus="true"
+														autofocus="true"
 													)
 													span.small.text-primary(ng-show="registerLdapForm.email.$invalid && registerLdapForm.email.$dirty")
 														| #{translate("must_be_email_address")}
@@ -133,7 +133,7 @@ block content
 														required,
 														ng-model="email",
 														ng-model-options="{ updateOn: 'blur' }",
-														focus="true"
+														autofocus="true"
 													)
 													span.small.text-primary(ng-show="registerSamlForm.email.$invalid && registerSamlForm.email.$dirty")
 														| #{translate("must_be_email_address")}

+ 1 - 1
services/web/modules/user-activate/app/views/user/activate.pug

@@ -51,7 +51,7 @@ block content
 									required,
 									ng-model="password",
 									complex-password,
-									focus="true"
+									autofocus="true"
 								)
 								span.small.text-primary(ng-show="activationForm.password.$error.complexPassword", ng-bind-html="complexPasswordErrorMessage")
 							.actions