Skip to content

Commit

Permalink
Implement fix for IE11 on blur
Browse files Browse the repository at this point in the history
  • Loading branch information
joeholdcroft committed Feb 18, 2019
1 parent 9cdc169 commit a4cab6b
Show file tree
Hide file tree
Showing 7 changed files with 2,185 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/js/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@
self.refreshState();

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

self.ignoreFocus = false;
self.trigger('blur');
Expand Down
4 changes: 2 additions & 2 deletions dist/js/selectize.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/js/standalone/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,14 +420,14 @@
return (str + '').replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
};

var is_array = Array.isArray || ($ && $.isArray) || function(object) {
var is_array = Array.isArray || (typeof $ !== 'undefined' && $.isArray) || function(object) {
return Object.prototype.toString.call(object) === '[object Array]';
};

var DIACRITICS = {
'a': '[aÀÁÂÃÄÅàáâãäåĀāąĄ]',
'c': '[cÇçćĆčČ]',
'd': '[dđĐďĎ]',
'd': '[dđĐďĎð]',
'e': '[eÈÉÊËèéêëěĚĒēęĘ]',
'i': '[iÌÍÎÏìíîïĪī]',
'l': '[lłŁ]',
Expand Down Expand Up @@ -1677,7 +1677,7 @@
self.refreshState();

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

self.ignoreFocus = false;
self.trigger('blur');
Expand Down
3 changes: 0 additions & 3 deletions dist/js/standalone/selectize.min.js

This file was deleted.

Loading

0 comments on commit a4cab6b

Please sign in to comment.