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 174df1c + fc5cdb9 commit 0765368Copy full SHA for 0765368
src/jquery.autocomplete.js
@@ -163,12 +163,7 @@
163
options = that.options,
164
container;
165
166
- // Remove autocomplete attribute to prevent native suggestions:
167
- // 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');
+ that.element.setAttribute('autocomplete', 'off');
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