fix: disable autocomplete in chrome for good
This commit is contained in:
@@ -21,7 +21,7 @@ class AddressType extends AbstractType
|
||||
'required' => $options['required'],
|
||||
'sanitize_html' => true,
|
||||
'attr' => [
|
||||
'autocomplete' => 'off',
|
||||
'autocomplete' => 'leave-me-alone-chrome',
|
||||
],
|
||||
])
|
||||
->add('postCode', TextType::class, [
|
||||
@@ -29,7 +29,7 @@ class AddressType extends AbstractType
|
||||
'required' => $options['required'],
|
||||
'sanitize_html' => true,
|
||||
'attr' => [
|
||||
'autocomplete' => 'off',
|
||||
'autocomplete' => 'leave-me-alone-chrome',
|
||||
],
|
||||
])
|
||||
->add('city', TextType::class, [
|
||||
@@ -37,7 +37,7 @@ class AddressType extends AbstractType
|
||||
'required' => $options['required'],
|
||||
'sanitize_html' => true,
|
||||
'attr' => [
|
||||
'autocomplete' => 'off',
|
||||
'autocomplete' => 'leave-me-alone-chrome',
|
||||
],
|
||||
])
|
||||
->add('country', CountryType::class, [
|
||||
|
||||
@@ -169,7 +169,7 @@ class BookingParticipantType extends AbstractType
|
||||
'sanitize_html' => true,
|
||||
'property_path' => 'participant.firstName',
|
||||
'attr' => [
|
||||
'autocomplete' => 'off',
|
||||
'autocomplete' => 'leave-me-alone-chrome',
|
||||
],
|
||||
], $getFieldState('firstName')));
|
||||
}
|
||||
@@ -180,7 +180,7 @@ class BookingParticipantType extends AbstractType
|
||||
'sanitize_html' => true,
|
||||
'property_path' => 'participant.lastName',
|
||||
'attr' => [
|
||||
'autocomplete' => 'off',
|
||||
'autocomplete' => 'leave-me-alone-chrome',
|
||||
],
|
||||
], $getFieldState('lastName')));
|
||||
}
|
||||
@@ -223,7 +223,7 @@ class BookingParticipantType extends AbstractType
|
||||
'label' => 'E-Mail',
|
||||
'property_path' => 'participant.email',
|
||||
'attr' => [
|
||||
'autocomplete' => 'off',
|
||||
'autocomplete' => 'leave-me-alone-chrome',
|
||||
],
|
||||
], $getFieldState('email')));
|
||||
}
|
||||
@@ -235,7 +235,7 @@ class BookingParticipantType extends AbstractType
|
||||
'sanitize_html' => true,
|
||||
'property_path' => 'participant.mobile',
|
||||
'attr' => [
|
||||
'autocomplete' => 'off',
|
||||
'autocomplete' => 'leave-me-alone-chrome',
|
||||
],
|
||||
], $getFieldState('mobile')));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user