From aedcc10b8f2259791989a07c8594a8a343a4cd74 Mon Sep 17 00:00:00 2001
From: Dmitrii Chekaliuk <d.chekaliuk@invisilabs.com>
Date: Thu, 28 Mar 2013 02:19:28 +0200
Subject: [PATCH] Fix focus issue on multi-value select

Inside the multi-value select box, when you hit backspace next to the
choice, it gets the `select2-search-choice-focus` class, but that class
is not being removed when select box loses the focus.
---
 select2.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/select2.js b/select2.js
index f472eba1..b2e6185a 100644
--- a/select2.js
+++ b/select2.js
@@ -2194,6 +2194,7 @@ the specific language governing permissions and limitations under the Apache Lic
             this.search.bind("blur", this.bind(function(e) {
                 this.container.removeClass("select2-container-active");
                 this.search.removeClass("select2-focused");
+                this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
                 if (!this.opened()) this.clearSearch();
                 e.stopImmediatePropagation();
             }));