set autofocus attribute on form fields for better keyboard support (#640)
This commit is contained in:
@@ -40,6 +40,9 @@ class CustomerEditForm extends AbstractType
|
||||
$builder
|
||||
->add('name', TextType::class, [
|
||||
'label' => 'label.name',
|
||||
'attr' => [
|
||||
'autofocus' => 'autofocus'
|
||||
],
|
||||
])
|
||||
->add('number', TextType::class, [
|
||||
'label' => 'label.number',
|
||||
|
||||
Reference in New Issue
Block a user