Skip to content

Commit

Permalink
Add autocomplete off to form fields in search
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Aug 17, 2023
1 parent dbf3dac commit 0c24f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/Search/_form.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% form_theme form '@SyliusShop/Form/theme.html.twig' %}
<div class="ui form items">
{{ form_start(form, {'action': path('monsieurbiz_search_post'), 'method': 'POST', 'attr': {'class': 'ui search item category autocomplete-search', 'tabindex': '-1'}}) }}
{{ form_start(form, {'action': path('monsieurbiz_search_post'), 'method': 'POST', 'attr': {'class': 'ui search item category autocomplete-search', 'tabindex': '-1', 'autocomplete': 'off'}}) }}
{{ form_errors(form) }}
{{ form_row(form.query, {'value': query, 'label': false}) }}
{{ form_row(form.submit, {'attr': {'class': 'ui primary button'}}) }}
Expand Down

0 comments on commit 0c24f5c

Please sign in to comment.