Explorar o código

Autofocus on username field

Useful UX improvement
MaximAL %!s(int64=10) %!d(string=hai) anos
pai
achega
7cf2418d88
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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() ?>
         <?= $form->field($model, 'password')->passwordInput() ?>