fix: disable autocomplete in chrome for good
This commit is contained in:
@@ -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, [
|
||||||
|
|||||||
@@ -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')));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user