Explorar o código

Fix selection first element from "postprocessResults" - exclude selected elements from highlightable elements

Efremenko Roman %!s(int64=11) %!d(string=hai) anos
pai
achega
9266d7cf55
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
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