Skip to content

Commit

Permalink
Fixed autoselect on tab
Browse files Browse the repository at this point in the history
  • Loading branch information
webbes committed May 8, 2019
1 parent 107a9b0 commit 155b00f
Show file tree
Hide file tree
Showing 10 changed files with 7,269 additions and 42 deletions.
11 changes: 6 additions & 5 deletions dist/bloodhound.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/*!
* typeahead.js 1.2.0
* https://github.com/twitter/typeahead.js
* Copyright 2013-2017 Twitter, Inc. and other contributors; Licensed MIT
* typeahead.js 1.2.1
* https://github.com/corejavascript/typeahead.js
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
*/


(function(root, factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function(a0) {
return root["Bloodhound"] = factory(a0);
});
} else if (typeof exports === "object") {
} else if (typeof module === "object" && module.exports) {
module.exports = factory(require("jquery"));
} else {
root["Bloodhound"] = factory(root["jQuery"]);
Expand Down Expand Up @@ -158,7 +159,7 @@
noop: function() {}
};
}();
var VERSION = "1.2.0";
var VERSION = "1.2.1";
var tokenizers = function() {
"use strict";
return {
Expand Down
9 changes: 5 additions & 4 deletions dist/bloodhound.min.js

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions dist/typeahead.bundle.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/*!
* typeahead.js 1.2.0
* https://github.com/twitter/typeahead.js
* Copyright 2013-2017 Twitter, Inc. and other contributors; Licensed MIT
* typeahead.js 1.2.1
* https://github.com/corejavascript/typeahead.js
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
*/


(function(root, factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function(a0) {
return root["Bloodhound"] = factory(a0);
});
} else if (typeof exports === "object") {
} else if (typeof module === "object" && module.exports) {
module.exports = factory(require("jquery"));
} else {
root["Bloodhound"] = factory(root["jQuery"]);
Expand Down Expand Up @@ -158,7 +159,7 @@
noop: function() {}
};
}();
var VERSION = "1.2.0";
var VERSION = "1.2.1";
var tokenizers = function() {
"use strict";
return {
Expand Down Expand Up @@ -956,7 +957,7 @@
define([ "jquery" ], function(a0) {
return factory(a0);
});
} else if (typeof exports === "object") {
} else if (typeof module === "object" && module.exports) {
module.exports = factory(require("jquery"));
} else {
factory(root["jQuery"]);
Expand Down Expand Up @@ -2203,8 +2204,10 @@
var $selectable;
if ($selectable = this.menu.getActiveSelectable()) {
this.select($selectable) && $e.preventDefault();
} else if ($selectable = this.menu.getTopSelectable()) {
this.autocomplete($selectable) && $e.preventDefault();
} else if (this.autoselect) {
if ($selectable = this.menu.getTopSelectable()) {
this.autocomplete($selectable) && $e.preventDefault();
}
}
},
_onEscKeyed: function onEscKeyed() {
Expand Down
11 changes: 6 additions & 5 deletions dist/typeahead.bundle.min.js

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions dist/typeahead.jquery.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/*!
* typeahead.js 1.2.0
* https://github.com/twitter/typeahead.js
* Copyright 2013-2017 Twitter, Inc. and other contributors; Licensed MIT
* typeahead.js 1.2.1
* https://github.com/corejavascript/typeahead.js
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
*/


(function(root, factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function(a0) {
return factory(a0);
});
} else if (typeof exports === "object") {
} else if (typeof module === "object" && module.exports) {
module.exports = factory(require("jquery"));
} else {
factory(root["jQuery"]);
Expand Down Expand Up @@ -1256,8 +1257,10 @@
var $selectable;
if ($selectable = this.menu.getActiveSelectable()) {
this.select($selectable) && $e.preventDefault();
} else if ($selectable = this.menu.getTopSelectable()) {
this.autocomplete($selectable) && $e.preventDefault();
} else if (this.autoselect) {
if ($selectable = this.menu.getTopSelectable()) {
this.autocomplete($selectable) && $e.preventDefault();
}
}
},
_onEscKeyed: function onEscKeyed() {
Expand Down
9 changes: 5 additions & 4 deletions dist/typeahead.jquery.min.js

Large diffs are not rendered by default.

0 comments on commit 155b00f

Please sign in to comment.