From 5bf46e0383d650d46794b76ad12d93e16243f5d0 Mon Sep 17 00:00:00 2001 From: Andrew Kos Date: Wed, 2 Sep 2015 15:45:43 -0500 Subject: [PATCH] New dist --- dist/bulbs-autocomplete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bulbs-autocomplete.js b/dist/bulbs-autocomplete.js index fadb88a..7e670fc 100644 --- a/dist/bulbs-autocomplete.js +++ b/dist/bulbs-autocomplete.js @@ -151,13 +151,13 @@ angular.module('BulbsAutocomplete.suggest.directive', []) case 38: // up if (!scope.mouseActive) { - scope.selectedIndex = scope.selectedIndex <= 0 ? lastIndexOfItems : scope.selectedIndex - 1; + scope.selectedIndex = scope.selectedIndex <= -1 ? lastIndexOfItems : scope.selectedIndex - 1; } break; case 40: //Down if (!scope.mouseActive) { - scope.selectedIndex = scope.selectedIndex >= lastIndexOfItems ? 0 : scope.selectedIndex + 1; + scope.selectedIndex = scope.selectedIndex >= lastIndexOfItems ? -1 : scope.selectedIndex + 1; } break; }