set autofocus attribute on form fields for better keyboard support (#640)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user