From 294e7e664d95eafb7f41264c2b87412ad9aa48fc Mon Sep 17 00:00:00 2001 From: Nino Schoch Date: Thu, 16 Jun 2016 13:45:21 +0200 Subject: [PATCH] Fixed form focus lost --- src/js/select2/dropdown/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/select2/dropdown/search.js b/src/js/select2/dropdown/search.js index 3e9df401..cee81feb 100644 --- a/src/js/select2/dropdown/search.js +++ b/src/js/select2/dropdown/search.js @@ -63,7 +63,7 @@ define([ }); container.on('focus', function () { - if (container.isOpen()) { + if (!container.isOpen()) { self.$search.focus(); } });