Преглед изворни кода

Autofocus on username field

Useful UX improvement
MaximAL пре 10 година
родитељ
комит
7cf2418d88
1 измењених фајлова са 1 додато и 1 уклоњено
  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() ?>