fixes IE8 bug where the dropdown wouldnt open. it would actually open and close immediately because the body would get a focusin event even after the focus was set on the search field by select2. worked fine in IE9
This commit is contained in:
parent
633a6dc901
commit
6c330eb53b
@ -382,7 +382,7 @@
|
|||||||
* blurs any Select2 container that has focus when an element outside them was clicked or received focus
|
* blurs any Select2 container that has focus when an element outside them was clicked or received focus
|
||||||
*/
|
*/
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$(document).delegate("*", "mousedown focusin touchend", function (e) {
|
$(document).delegate("*", "mousedown touchend", function (e) {
|
||||||
var target = $(e.target).closest("div.select2-container").get(0);
|
var target = $(e.target).closest("div.select2-container").get(0);
|
||||||
if (target) {
|
if (target) {
|
||||||
$(document).find("div.select2-container-active").each(function () {
|
$(document).find("div.select2-container-active").each(function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user