Browse Source

Fixed form focus lost

Nino Schoch 9 năm trước cách đây
mục cha
commit
294e7e664d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
       }
     });