Преглед изворни кода

fix input field broken by fix to #132

Igor Vaynberg пре 13 година
родитељ
комит
54b83c2baf
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      select2.js

+ 3 - 3
select2.js

@@ -437,7 +437,7 @@
             this.dropdown.data("select2", this);
 
             this.results = results = this.container.find(resultsSelector);
-            this.search = search = this.container.find("input[type=text]");
+            this.search = search = this.container.find("input.select2-input");
 
             this.resultsPage = 0;
             this.context = null;
@@ -1028,7 +1028,7 @@
                 "</a>",
                 "    <div class='select2-drop' style='display:none;'>" ,
                 "   <div class='select2-search'>" ,
-                "       <input type='text' autocomplete='off'/>" ,
+                "       <input type='text' autocomplete='off' class='select2-input'/>" ,
                 "   </div>" ,
                 "   <ul class='select2-results'>" ,
                 "   </ul>" ,
@@ -1309,7 +1309,7 @@
                 "    <ul class='select2-choices'>",
                 //"<li class='select2-search-choice'><span>California</span><a href="javascript:void(0)" class="select2-search-choice-close"></a></li>" ,
                 "  <li class='select2-search-field'>" ,
-                "    <input type='text' autocomplete='off' style='width: 25px;'>" ,
+                "    <input type='text' autocomplete='off' style='width: 25px;' class='select2-input'>" ,
                 "  </li>" ,
                 "</ul>" ,
                 "<div class='select2-drop select2-drop-multi' style='display:none;'>" ,