Skip to content

Commit

Permalink
Merge pull request #9307 from timhoffm/search-corrections
Browse files Browse the repository at this point in the history
Prevent corrections and completions in search field
  • Loading branch information
tk0miya committed Jun 13, 2021
2 parents a5eefc0 + 488df3f commit 99bfdb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx/themes/basic/search.html
Expand Up @@ -37,7 +37,7 @@ <h1 id="search-documentation">{{ _('Search') }}</h1>
{% endblock %}
{% block searchbox %}
<form action="" method="get">
<input type="text" name="q" aria-labelledby="search-documentation" value="" />
<input type="text" name="q" aria-labelledby="search-documentation" value="" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="{{ _('search') }}" />
<span id="search-progress" style="padding-left: 10px"></span>
</form>
Expand Down
2 changes: 1 addition & 1 deletion sphinx/themes/basic/searchbox.html
Expand Up @@ -12,7 +12,7 @@
<h3 id="searchlabel">{{ _('Quick search') }}</h3>
<div class="searchformwrapper">
<form class="search" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="{{ _('Go') }}" />
</form>
</div>
Expand Down

0 comments on commit 99bfdb6

Please sign in to comment.