1
0
mirror of synced 2025-02-16 20:13:16 +03:00

Fix up arrow error when there is no options

This commit is contained in:
rodrigo.perez 2017-11-14 08:47:11 -02:00 committed by alexweissman
parent 0087114474
commit 34e8b695f0

View File

@ -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;
}