Added autocomplete="off" attribute to prevent safari from autocomplete.

This commit is contained in:
Martin Edenhofer 2016-05-12 18:50:13 +02:00
parent 28ef42826d
commit 927da9af8c
2 changed files with 2 additions and 1 deletions

View file

@ -21,7 +21,7 @@
<% if @attribute.options.length > 10: %>
<div class="columnSelect-search">
<%- @Icon('magnifier') %>
<input class="js-search">
<input class="js-search" autocomplete="off">
<div class="columnSelect-search-clear js-clear is-hidden">
<%- @Icon('diagonal-cross') %>
</div>

View file

@ -11,6 +11,7 @@
class="searchableSelect-main form-control js-input<%= " #{ @class }" if @class %>"
placeholder="<%= @placeholder %>"
value="<%= @valueName %>"
autocomplete="off"
>
<div class="searchableSelect-autocomplete">
<span class="searchableSelect-autocomplete-invisible js-autocomplete-invisible"></span>