From 63f71b7185d548613d0f0fb6608fa5b1e59f46a9 Mon Sep 17 00:00:00 2001 From: Joris Vercammen Date: Fri, 31 May 2019 10:49:12 +0200 Subject: [PATCH] Fix compatibility with jquery-3.4.0 See issue #5485 --- src/js/select2/selection/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/select2/selection/search.js b/src/js/select2/selection/search.js index 3ff96f94db..9b9691a5ad 100644 --- a/src/js/select2/selection/search.js +++ b/src/js/select2/selection/search.js @@ -178,7 +178,7 @@ define([ var isTagInput = this.$element.find('[data-select2-tag]').length; if (isTagInput) { // fix IE11 bug where tag input lost focus - this.$element.focus(); + this.$element[0].focus(); } else { this.$search.focus(); }