fix: disable autocomplete in chrome for good

This commit is contained in:
Björn Fromme
2026-03-16 12:00:55 +01:00
parent 6bbef0a975
commit e12fbc85d4
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -21,7 +21,7 @@ class AddressType extends AbstractType
'required' => $options['required'], 'required' => $options['required'],
'sanitize_html' => true, 'sanitize_html' => true,
'attr' => [ 'attr' => [
'autocomplete' => 'off', 'autocomplete' => 'leave-me-alone-chrome',
], ],
]) ])
->add('postCode', TextType::class, [ ->add('postCode', TextType::class, [
@@ -29,7 +29,7 @@ class AddressType extends AbstractType
'required' => $options['required'], 'required' => $options['required'],
'sanitize_html' => true, 'sanitize_html' => true,
'attr' => [ 'attr' => [
'autocomplete' => 'off', 'autocomplete' => 'leave-me-alone-chrome',
], ],
]) ])
->add('city', TextType::class, [ ->add('city', TextType::class, [
@@ -37,7 +37,7 @@ class AddressType extends AbstractType
'required' => $options['required'], 'required' => $options['required'],
'sanitize_html' => true, 'sanitize_html' => true,
'attr' => [ 'attr' => [
'autocomplete' => 'off', 'autocomplete' => 'leave-me-alone-chrome',
], ],
]) ])
->add('country', CountryType::class, [ ->add('country', CountryType::class, [
+4 -4
View File
@@ -169,7 +169,7 @@ class BookingParticipantType extends AbstractType
'sanitize_html' => true, 'sanitize_html' => true,
'property_path' => 'participant.firstName', 'property_path' => 'participant.firstName',
'attr' => [ 'attr' => [
'autocomplete' => 'off', 'autocomplete' => 'leave-me-alone-chrome',
], ],
], $getFieldState('firstName'))); ], $getFieldState('firstName')));
} }
@@ -180,7 +180,7 @@ class BookingParticipantType extends AbstractType
'sanitize_html' => true, 'sanitize_html' => true,
'property_path' => 'participant.lastName', 'property_path' => 'participant.lastName',
'attr' => [ 'attr' => [
'autocomplete' => 'off', 'autocomplete' => 'leave-me-alone-chrome',
], ],
], $getFieldState('lastName'))); ], $getFieldState('lastName')));
} }
@@ -223,7 +223,7 @@ class BookingParticipantType extends AbstractType
'label' => 'E-Mail', 'label' => 'E-Mail',
'property_path' => 'participant.email', 'property_path' => 'participant.email',
'attr' => [ 'attr' => [
'autocomplete' => 'off', 'autocomplete' => 'leave-me-alone-chrome',
], ],
], $getFieldState('email'))); ], $getFieldState('email')));
} }
@@ -235,7 +235,7 @@ class BookingParticipantType extends AbstractType
'sanitize_html' => true, 'sanitize_html' => true,
'property_path' => 'participant.mobile', 'property_path' => 'participant.mobile',
'attr' => [ 'attr' => [
'autocomplete' => 'off', 'autocomplete' => 'leave-me-alone-chrome',
], ],
], $getFieldState('mobile'))); ], $getFieldState('mobile')));
} }