set autofocus attribute on form fields for better keyboard support (#640)

This commit is contained in:
Kevin Papst
2019-03-13 00:09:02 +01:00
committed by GitHub
parent f4d53e9006
commit 19bfff9899
8 changed files with 23 additions and 3 deletions

View File

@@ -46,6 +46,9 @@ class ProjectEditForm extends AbstractType
$builder
->add('name', TextType::class, [
'label' => 'label.name',
'attr' => [
'autofocus' => 'autofocus'
],
])
->add('comment', TextareaType::class, [
'label' => 'label.comment',