Explorar el Código

HTML5 shorthand for attribute value

MaximAL hace 10 años
padre
commit
4b2e0713e3
Se han modificado 1 ficheros con 1 adiciones y 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')->textInput(['autofocus' => 'autofocus']) ?>
+        <?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?>
 
         <?= $form->field($model, 'password')->passwordInput() ?>