1
0
mirror of synced 2025-02-04 06:09:23 +03:00

bugfix moveHighlight: disabled list elements were highlighted now they are ignored

Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
This commit is contained in:
Mitko Tschimev 2012-07-04 13:16:29 +02:00 committed by Igor Vaynberg
parent cb72651787
commit ac8a4db76f

View File

@ -823,7 +823,8 @@
while (index > -1 && index < choices.length) {
index += delta;
if ($(choices[index]).hasClass("select2-result-selectable")) {
var choice = $(choices[index]);
if (choice.hasClass("select2-result-selectable") && !choice.hasClass("select2-disabled")) {
this.highlight(index);
break;
}