Skip to content

Commit

Permalink
Merge pull request selectize#1150 from mpokrywka/master
Browse files Browse the repository at this point in the history
Improve IE11 fix not to throw errors when element cannot be focused
  • Loading branch information
joallard authored Sep 12, 2016
2 parents 51cb5c2 + d4233b3 commit 702761d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ $.extend(Selectize.prototype, {
self.refreshState();

// IE11 bug: element still marked as active
dest && dest.focus();
dest && dest.focus && dest.focus();

self.ignoreFocus = false;
self.trigger('blur');
Expand Down

0 comments on commit 702761d

Please sign in to comment.