Skip to content

Commit c135db8

Browse files
committed
Merge pull request select2#632 from crueber/patch-1
Update select2.js
2 parents 4dc2a62 + 86952b4 commit c135db8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

select2.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,6 +2210,11 @@ the specific language governing permissions and limitations under the Apache Lic
22102210
if (searchWidth < 40) {
22112211
searchWidth = maxWidth - sideBorderPadding;
22122212
}
2213+
2214+
if (searchWidth <= 0) {
2215+
searchWidth = minimumWidth
2216+
}
2217+
22132218
this.search.width(searchWidth);
22142219
},
22152220

0 commit comments

Comments
 (0)