From 89c51ac6b5c6f3e2f0ac222450561adc3cda8d75 Mon Sep 17 00:00:00 2001 From: Sergey Motornyuk Date: Wed, 28 Aug 2019 16:26:47 +0300 Subject: [PATCH] Show input field after select2 focus After select2 upgrade input field not always shown when autocomplete field receives focus. This PR contains changes to source of select2, that is not a best solution, but otherwise we need either to update major version of select2(a lot of incompability issues for extension) or monkey-patch select2. --- ckan/public/base/vendor/select2/select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/public/base/vendor/select2/select2.js b/ckan/public/base/vendor/select2/select2.js index 195ccee5bb0..b162260c799 100644 --- a/ckan/public/base/vendor/select2/select2.js +++ b/ckan/public/base/vendor/select2/select2.js @@ -1989,7 +1989,7 @@ 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()) + "
  • "); if(this.showSearch){ - this.showSearch(search.val()); + this.showSearch(true); } return; }