Skip to content

Commit 671c9c2

Browse files
Merge branch '2.7' into enter_fix
2 parents ee03468 + bb85358 commit 671c9c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dist/autocomplete.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ var AutoComplete = (function () {
178178
}
179179
},
180180
HttpHeaders: {
181-
"Content-type": "application/x-www-form-urlencoded"
181+
"Content-type": "application/x-www-form-urlencoded",
182+
"X-Requested-With": "XMLHttpRequest"
182183
},
183184
Limit: 0,
184185
MinChars: 0,
@@ -196,6 +197,7 @@ var AutoComplete = (function () {
196197
var liActive = this.DOMResults.querySelector("li.active");
197198
if (liActive !== null) {
198199
event.preventDefault();
200+
199201
this._Select(liActive);
200202
this.DOMResults.setAttribute("class", "autocomplete");
201203
}
@@ -539,4 +541,4 @@ var AutoComplete = (function () {
539541
module.exports = AutoComplete;
540542

541543
},{}]},{},[1])(1)
542-
});
544+
});

0 commit comments

Comments
 (0)