1
0
mirror of synced 2024-12-02 01:26:02 +03:00

Update select2.js

Adding case to fix placeholder not being displayed when element not visible.
This commit is contained in:
Chris Rueber 2012-12-08 11:36:07 -06:00
parent 4dc2a62142
commit 86952b4ed9

View File

@ -2210,6 +2210,11 @@ the specific language governing permissions and limitations under the Apache Lic
if (searchWidth < 40) { if (searchWidth < 40) {
searchWidth = maxWidth - sideBorderPadding; searchWidth = maxWidth - sideBorderPadding;
} }
if (searchWidth <= 0) {
searchWidth = minimumWidth
}
this.search.width(searchWidth); this.search.width(searchWidth);
}, },