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

Commit

Permalink
Version up to 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Kos committed Sep 2, 2015
1 parent 591a99b commit bda8288
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bulbs-autocomplete",
"version": "0.2.2",
"version": "0.2.3",
"appPath": "src",
"description": "America's Finest Autocomplete module",
"main": [
Expand Down
8 changes: 3 additions & 5 deletions dist/bulbs-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,9 @@ angular.module('BulbsAutocomplete.suggest.directive', [])
switch (keyEvent.keyCode) {
case 13:
// enter
if (scope.selectedIndex !== -1) {
scope.onSelect({
selection: scope.items[scope.selectedIndex]
});
}
scope.onSelect({
selection: scope.selectedIndex === -1 ? null : scope.items[scope.selectedIndex]
});
break;
case 38:
// up
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bulbs-autocomplete",
"version": "0.2.2",
"version": "0.2.3",
"dependencies": {},
"devDependencies": {
"chromedriver": "^2.13.0",
Expand Down

0 comments on commit bda8288

Please sign in to comment.