Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
New dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Kos committed Sep 2, 2015
1 parent 3cd1400 commit 5bf46e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/bulbs-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5bf46e0

Please sign in to comment.