We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d79adf commit 5859dc8Copy full SHA for 5859dc8
1 file changed
select2.js
@@ -1598,7 +1598,7 @@
1598
if (placeholder !== undefined && this.getVal().length === 0 && this.search.hasClass("select2-focused") === false) {
1599
this.search.val(placeholder).addClass("select2-default");
1600
// 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");
+ this.resizeSearch();
1602
} else {
1603
// we set this to " " instead of "" and later clear it on focus() because there is a firefox bug
1604
// that does not properly render the caret when the field starts out blank
0 commit comments