Skip to content

Commit 7cf2418

Browse files
committed
Autofocus on username field
Useful UX improvement
1 parent 0970b6f commit 7cf2418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/site/login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
]); ?>
2626

27-
<?= $form->field($model, 'username') ?>
27+
<?= $form->field($model, 'username')->textInput(['autofocus' => 'autofocus']) ?>
2828

2929
<?= $form->field($model, 'password')->passwordInput() ?>
3030

0 commit comments

Comments
 (0)