Fix up arrow error when there is no options
This commit is contained in:
parent
0087114474
commit
34e8b695f0
3
src/js/select2/results.js
vendored
3
src/js/select2/results.js
vendored
@ -340,7 +340,8 @@ define([
|
||||
var currentIndex = $options.index($highlighted);
|
||||
|
||||
// If we are already at te top, don't move further
|
||||
if (currentIndex === 0) {
|
||||
// If no options, currentIndex will be -1
|
||||
if (currentIndex <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user