diff --git a/select2.js b/select2.js index e0e946f1..3bc3d356 100644 --- a/select2.js +++ b/select2.js @@ -1216,8 +1216,12 @@ } } - if (search.val().length < opts.minimumInputLength && checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) { - render("
  • " + opts.formatInputTooShort(search.val(), opts.minimumInputLength) + "
  • "); + if (search.val().length < opts.minimumInputLength) { + if (checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) { + render("
  • " + opts.formatInputTooShort(search.val(), opts.minimumInputLength) + "
  • "); + } else { + render(""); + } return; } else {