Browse Source

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

alexweissman 7 years ago
parent
commit
ca4de9dcb0
1 changed files with 1 additions and 1 deletions
  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();
       }
     });