Skip to content

Commit

Permalink
Fix FF and IE tabbing/blur issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
topaxi committed Dec 18, 2017
1 parent 32ee80a commit e650940
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -1772,9 +1772,13 @@ $.extend(Selectize.prototype, {

if (self.settings.mode === 'single' && self.items.length) {
self.hideInput();
setTimeout(function() {

// Do not trigger blur while inside a blur event,
// this fixes some weird tabbing behavior in FF and IE.
// See #1164
if (self.ignoreFocus) {
self.$control_input.blur(); // close keyboard on iOS
});
}
}

self.isOpen = false;
Expand Down

0 comments on commit e650940

Please sign in to comment.