diff --git a/select2.js b/select2.js index 00bfb7fc..41043d9d 100644 --- a/select2.js +++ b/select2.js @@ -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("
  • " + evaluate(opts.formatNoMatches, opts.element, search.val()) + "
  • "); - this.showSearch(search.val()); + if(this.showSearch){ + this.showSearch(search.val()); + } return; }