Skip to content

Commit 174df1c

Browse files
author
Tomas Kirda
committed
Rev for 1.4.8 release
1 parent f6eef03 commit 174df1c

5 files changed

+12
-8
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.4.7",
3+
"version": "1.4.8",
44
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
55
"authors": [
66
"Tomas Kirda"

devbridge-autocomplete.jquery.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"ajax",
77
"autocomplete"
88
],
9-
"version": "1.4.7",
9+
"version": "1.4.8",
1010
"author": {
1111
"name": "Tomas Kirda",
1212
"url": "https://github.com/tkirda"

dist/jquery.autocomplete.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Ajax Autocomplete for jQuery, version 1.4.7
2+
* Ajax Autocomplete for jQuery, version 1.4.8
33
* (c) 2017 Tomas Kirda
44
*
55
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
@@ -70,7 +70,7 @@
7070
that.isLocal = false;
7171
that.suggestionsContainer = null;
7272
that.noSuggestionsContainer = null;
73-
that.options = $.extend({}, Autocomplete.defaults, options);
73+
that.options = $.extend(true, {}, Autocomplete.defaults, options);
7474
that.classes = {
7575
selected: 'autocomplete-selected',
7676
suggestion: 'autocomplete-suggestion'
@@ -164,7 +164,11 @@
164164
container;
165165

166166
// Remove autocomplete attribute to prevent native suggestions:
167-
that.element.setAttribute('autocomplete', 'off');
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');
168172

169173
// html() deals with many types: htmlString or Element or Array or jQuery
170174
that.noSuggestionsContainer = $('<div class="autocomplete-no-suggestion"></div>')

dist/jquery.autocomplete.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.4.7",
3+
"version": "1.4.8",
44
"description": "Autocomplete provides suggestions while you type into the text field.",
55
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
66
"author": "Tomas Kirda (https://twitter.com/tkirda)",

0 commit comments

Comments
 (0)