Fix autocomplete and search-clear in webkit
Change-Id: I731f7785cf2a51df15dae8c40fdcf1778a9cb8b1
diff --git a/dev/scss/header/searchbar.scss b/dev/scss/header/searchbar.scss
index 37d7d69..bd9a9c3 100644
--- a/dev/scss/header/searchbar.scss
+++ b/dev/scss/header/searchbar.scss
@@ -13,6 +13,10 @@
margin: 0;
margin-bottom: 3px;
display: block;
+
+ &::-webkit-search-cancel-button {
+ display: none;
+ }
}
header input {
diff --git a/templates/partial/header.html.ep b/templates/partial/header.html.ep
index 682b365..8213e0a 100644
--- a/templates/partial/header.html.ep
+++ b/templates/partial/header.html.ep
@@ -12,7 +12,7 @@
</div>
<form autocomplete="off" action="<%= url_for 'index' %>" id="searchform">
<div id="searchbar">
- %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder'), spellcheck => 'false', autocomplete => 'corpus-query', autocorrect => 'off', autocapitalize => 'off'
+ %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder'), spellcheck => 'false', autocomplete => 'off', autocorrect => 'off', autocapitalize => 'off'
<button type="submit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button>
</div>