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.
1 parent 6b0861e commit f768123Copy full SHA for f768123
src/autocomplete.ts
@@ -1,7 +1,7 @@
1
/*
2
* @license MIT
3
*
4
- * Autocomplete.js v2.6.1
+ * Autocomplete.js v2.6.2
5
* Developed by Baptiste Donaux
6
* http://autocomplete-js.com
7
@@ -131,8 +131,10 @@ class AutoComplete {
131
Is: 13,
132
Not: false
133
}],
134
- Callback: function() {
+ Callback: function(event) {
135
if (this.DOMResults.getAttribute("class").indexOf("open") != -1) {
136
+ event.preventDefault();
137
+
138
var liActive = this.DOMResults.querySelector("li.active");
139
140
if (liActive !== null) {
@@ -142,7 +144,7 @@ class AutoComplete {
142
144
}
143
145
},
146
Operator: ConditionOperator.AND,
- Event: EventType.KEYUP
147
+ Event: EventType.KEYDOWN
148
149
"KeyUpAndDown_down": {
150
Conditions: [{
0 commit comments