Skip to content

Commit

Permalink
Fix tab key regression introduced by touch handling #1164
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Dec 5, 2016
1 parent b9f8d59 commit 6d3875d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,9 @@ $.extend(Selectize.prototype, {

if (self.settings.mode === 'single' && self.items.length) {
self.hideInput();
self.$control_input.blur(); // close keyboard on iOS
setTimeout(function() {
self.$control_input.blur(); // close keyboard on iOS
});
}

self.isOpen = false;
Expand Down

0 comments on commit 6d3875d

Please sign in to comment.