Explorar el Código

Merge branch 'focus-event' of https://github.com/nino-s/select2 into hotfix

alexweissman hace 8 años
padre
commit
ca4de9dcb0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/js/select2/dropdown/search.js

+ 1 - 1
src/js/select2/dropdown/search.js

@@ -63,7 +63,7 @@ define([
     });
 
     container.on('focus', function () {
-      if (container.isOpen()) {
+      if (!container.isOpen()) {
         self.$search.focus();
       }
     });