From 95b767cf829a69b1b12db60a0d598a7d1ac9c3df Mon Sep 17 00:00:00 2001 From: Scott Farley Date: Mon, 18 Mar 2019 10:59:02 -0700 Subject: [PATCH] Untrap tab key events --- src/suggestions.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/suggestions.js b/src/suggestions.js index fee28be..1e74eb2 100644 --- a/src/suggestions.js +++ b/src/suggestions.js @@ -55,8 +55,7 @@ Suggestions.prototype.handleKeyUp = function(keyCode) { if (keyCode === 40 || keyCode === 38 || keyCode === 27 || - keyCode === 13 || - keyCode === 9) return; + keyCode === 13 ) return; this.handleInputChange(this.el.value); }; @@ -64,7 +63,6 @@ Suggestions.prototype.handleKeyUp = function(keyCode) { Suggestions.prototype.handleKeyDown = function(e) { switch (e.keyCode) { case 13: // ENTER - case 9: // TAB if (!this.list.isEmpty()) { if (this.list.isVisible()) { e.preventDefault();