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:
parent
cb72651787
commit
ac8a4db76f
@ -823,7 +823,8 @@
|
|||||||
|
|
||||||
while (index > -1 && index < choices.length) {
|
while (index > -1 && index < choices.length) {
|
||||||
index += delta;
|
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);
|
this.highlight(index);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user