Przeglądaj źródła

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

alexweissman 7 lat temu
rodzic
commit
ca4de9dcb0
1 zmienionych plików z 1 dodań i 1 usunięć
  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();
       }
     });