We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3927f79 + 543cdf9 commit c7f02dbCopy full SHA for c7f02db
src/jquery.autocomplete.js
@@ -164,7 +164,11 @@
164
container;
165
166
// Remove autocomplete attribute to prevent native suggestions:
167
- that.element.setAttribute('autocomplete', 'off');
+ // as per
168
+ // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
169
+ // some browsers e.g. Google Chrome ignore autocomplete=off but autocomplete=nope
170
+ // will provide the correct behaviour
171
+ that.element.setAttribute('autocomplete', 'nope');
172
173
// html() deals with many types: htmlString or Element or Array or jQuery
174
that.noSuggestionsContainer = $('<div class="autocomplete-no-suggestion"></div>')
0 commit comments