🌐 AI搜索 & 代理 主页
Skip to content

Commit 6dccc29

Browse files
authored
Merge pull request #199 from webbes/autoselect-on-tab-fix
Fixed autoselect on tab
2 parents 107a9b0 + 155b00f commit 6dccc29

File tree

10 files changed

+7269
-42
lines changed

10 files changed

+7269
-42
lines changed

dist/bloodhound.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*!
2-
* typeahead.js 1.2.0
3-
* https://github.com/twitter/typeahead.js
4-
* Copyright 2013-2017 Twitter, Inc. and other contributors; Licensed MIT
2+
* typeahead.js 1.2.1
3+
* https://github.com/corejavascript/typeahead.js
4+
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
55
*/
66

7+
78
(function(root, factory) {
89
if (typeof define === "function" && define.amd) {
910
define([ "jquery" ], function(a0) {
1011
return root["Bloodhound"] = factory(a0);
1112
});
12-
} else if (typeof exports === "object") {
13+
} else if (typeof module === "object" && module.exports) {
1314
module.exports = factory(require("jquery"));
1415
} else {
1516
root["Bloodhound"] = factory(root["jQuery"]);
@@ -158,7 +159,7 @@
158159
noop: function() {}
159160
};
160161
}();
161-
var VERSION = "1.2.0";
162+
var VERSION = "1.2.1";
162163
var tokenizers = function() {
163164
"use strict";
164165
return {

dist/bloodhound.min.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typeahead.bundle.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*!
2-
* typeahead.js 1.2.0
3-
* https://github.com/twitter/typeahead.js
4-
* Copyright 2013-2017 Twitter, Inc. and other contributors; Licensed MIT
2+
* typeahead.js 1.2.1
3+
* https://github.com/corejavascript/typeahead.js
4+
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
55
*/
66

7+
78
(function(root, factory) {
89
if (typeof define === "function" && define.amd) {
910
define([ "jquery" ], function(a0) {
1011
return root["Bloodhound"] = factory(a0);
1112
});
12-
} else if (typeof exports === "object") {
13+
} else if (typeof module === "object" && module.exports) {
1314
module.exports = factory(require("jquery"));
1415
} else {
1516
root["Bloodhound"] = factory(root["jQuery"]);
@@ -158,7 +159,7 @@
158159
noop: function() {}
159160
};
160161
}();
161-
var VERSION = "1.2.0";
162+
var VERSION = "1.2.1";
162163
var tokenizers = function() {
163164
"use strict";
164165
return {
@@ -956,7 +957,7 @@
956957
define([ "jquery" ], function(a0) {
957958
return factory(a0);
958959
});
959-
} else if (typeof exports === "object") {
960+
} else if (typeof module === "object" && module.exports) {
960961
module.exports = factory(require("jquery"));
961962
} else {
962963
factory(root["jQuery"]);
@@ -2203,8 +2204,10 @@
22032204
var $selectable;
22042205
if ($selectable = this.menu.getActiveSelectable()) {
22052206
this.select($selectable) && $e.preventDefault();
2206-
} else if ($selectable = this.menu.getTopSelectable()) {
2207-
this.autocomplete($selectable) && $e.preventDefault();
2207+
} else if (this.autoselect) {
2208+
if ($selectable = this.menu.getTopSelectable()) {
2209+
this.autocomplete($selectable) && $e.preventDefault();
2210+
}
22082211
}
22092212
},
22102213
_onEscKeyed: function onEscKeyed() {

dist/typeahead.bundle.min.js

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typeahead.jquery.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*!
2-
* typeahead.js 1.2.0
3-
* https://github.com/twitter/typeahead.js
4-
* Copyright 2013-2017 Twitter, Inc. and other contributors; Licensed MIT
2+
* typeahead.js 1.2.1
3+
* https://github.com/corejavascript/typeahead.js
4+
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
55
*/
66

7+
78
(function(root, factory) {
89
if (typeof define === "function" && define.amd) {
910
define([ "jquery" ], function(a0) {
1011
return factory(a0);
1112
});
12-
} else if (typeof exports === "object") {
13+
} else if (typeof module === "object" && module.exports) {
1314
module.exports = factory(require("jquery"));
1415
} else {
1516
factory(root["jQuery"]);
@@ -1256,8 +1257,10 @@
12561257
var $selectable;
12571258
if ($selectable = this.menu.getActiveSelectable()) {
12581259
this.select($selectable) && $e.preventDefault();
1259-
} else if ($selectable = this.menu.getTopSelectable()) {
1260-
this.autocomplete($selectable) && $e.preventDefault();
1260+
} else if (this.autoselect) {
1261+
if ($selectable = this.menu.getTopSelectable()) {
1262+
this.autocomplete($selectable) && $e.preventDefault();
1263+
}
12611264
}
12621265
},
12631266
_onEscKeyed: function onEscKeyed() {

dist/typeahead.jquery.min.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)