Update select2.js
Adding case to fix placeholder not being displayed when element not visible.
This commit is contained in:
parent
4dc2a62142
commit
86952b4ed9
@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user