Browse Source

Autofocus on username field

Useful UX improvement
MaximAL 10 years ago
parent
commit
7cf2418d88
1 changed files with 1 additions and 1 deletions
  1. 1 1
      views/site/login.php

+ 1 - 1
views/site/login.php

@@ -24,7 +24,7 @@ $this->params['breadcrumbs'][] = $this->title;
         ],
     ]); ?>
 
-        <?= $form->field($model, 'username') ?>
+        <?= $form->field($model, 'username')->textInput(['autofocus' => 'autofocus']) ?>
 
         <?= $form->field($model, 'password')->passwordInput() ?>