Skip to content

Commit 05354c9

Browse files
authored
Merge pull request #1 from denisfl/fix-ff-focus
Fix Firefox focus
2 parents 32ee80a + 0237b1e commit 05354c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/selectize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,9 +1772,9 @@ $.extend(Selectize.prototype, {
17721772

17731773
if (self.settings.mode === 'single' && self.items.length) {
17741774
self.hideInput();
1775-
setTimeout(function() {
1775+
if (self.ignoreFocus) {
17761776
self.$control_input.blur(); // close keyboard on iOS
1777-
});
1777+
};
17781778
}
17791779

17801780
self.isOpen = false;

0 commit comments

Comments
 (0)