Skip to content

Commit 5859dc8

Browse files
committed
possible fix for select2#205
1 parent 4d79adf commit 5859dc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@
15981598
if (placeholder !== undefined && this.getVal().length === 0 && this.search.hasClass("select2-focused") === false) {
15991599
this.search.val(placeholder).addClass("select2-default");
16001600
// stretch the search box to full width of the container so as much of the placeholder is visible as possible
1601-
this.search.width("auto");
1601+
this.resizeSearch();
16021602
} else {
16031603
// we set this to " " instead of "" and later clear it on focus() because there is a firefox bug
16041604
// that does not properly render the caret when the field starts out blank

0 commit comments

Comments
 (0)