Explorar el Código

Update base.js

Pedro Felipe de Azevedo Furtado hace 6 años
padre
commit
933189b92e
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/js/select2/selection/base.js

+ 3 - 1
src/js/select2/selection/base.js

@@ -81,7 +81,9 @@ define([
       self.$selection.removeAttr('aria-activedescendant');
       self.$selection.removeAttr('aria-owns');
 
-      self.$selection.focus();
+      window.setTimeout(function () {
+        self.$selection.focus();
+      }, 0);
     
       self._detachCloseHandler(container);
     });