|
@@ -340,7 +340,8 @@ define([
|
|
var currentIndex = $options.index($highlighted);
|
|
var currentIndex = $options.index($highlighted);
|
|
|
|
|
|
// If we are already at te top, don't move further
|
|
// 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;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|