From 9266d7cf55ceaf2ff0f214b36b1403a5d4425e6b Mon Sep 17 00:00:00 2001 From: Efremenko Roman Date: Sun, 6 Oct 2013 17:02:03 +0400 Subject: [PATCH] Fix selection first element from "postprocessResults" - exclude selected elements from highlightable elements --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 950f9d73..7bcd0f87 100644 --- a/select2.js +++ b/select2.js @@ -1404,7 +1404,7 @@ the specific language governing permissions and limitations under the Apache Lic // abstract findHighlightableChoices: function() { - return this.results.find(".select2-result-selectable:not(.select2-disabled)"); + return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)"); }, // abstract