Skip to content

Commit 54b83c2

Browse files
author
Igor Vaynberg
committed
fix input field broken by fix to select2#132
1 parent 16c3d31 commit 54b83c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

select2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
this.dropdown.data("select2", this);
438438

439439
this.results = results = this.container.find(resultsSelector);
440-
this.search = search = this.container.find("input[type=text]");
440+
this.search = search = this.container.find("input.select2-input");
441441

442442
this.resultsPage = 0;
443443
this.context = null;
@@ -1028,7 +1028,7 @@
10281028
"</a>",
10291029
" <div class='select2-drop' style='display:none;'>" ,
10301030
" <div class='select2-search'>" ,
1031-
" <input type='text' autocomplete='off'/>" ,
1031+
" <input type='text' autocomplete='off' class='select2-input'/>" ,
10321032
" </div>" ,
10331033
" <ul class='select2-results'>" ,
10341034
" </ul>" ,
@@ -1309,7 +1309,7 @@
13091309
" <ul class='select2-choices'>",
13101310
//"<li class='select2-search-choice'><span>California</span><a href="javascript:void(0)" class="select2-search-choice-close"></a></li>" ,
13111311
" <li class='select2-search-field'>" ,
1312-
" <input type='text' autocomplete='off' style='width: 25px;'>" ,
1312+
" <input type='text' autocomplete='off' style='width: 25px;' class='select2-input'>" ,
13131313
" </li>" ,
13141314
"</ul>" ,
13151315
"<div class='select2-drop select2-drop-multi' style='display:none;'>" ,

0 commit comments

Comments
 (0)