|
@@ -1841,7 +1841,9 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
|
|
|
if (data.results.length === 0 && checkFormatter(opts.formatNoMatches, "formatNoMatches")) {
|
|
|
render("<li class='select2-no-results'>" + evaluate(opts.formatNoMatches, opts.element, search.val()) + "</li>");
|
|
|
- this.showSearch(search.val());
|
|
|
+ if(this.showSearch){
|
|
|
+ this.showSearch(search.val());
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
|