Skip to content

Commit

Permalink
Show input field after select2 focus
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
smotornyuk committed Aug 28, 2019
1 parent 977fe00 commit 89c51ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/public/base/vendor/select2/select2.js
Expand Up @@ -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("<li class='select2-no-results'>" + evaluate(opts.formatNoMatches, opts.element, search.val()) + "</li>");
if(this.showSearch){
this.showSearch(search.val());
this.showSearch(true);
}
return;
}
Expand Down

0 comments on commit 89c51ac

Please sign in to comment.