Skip to content

Commit

Permalink
Don't auto close results when pressing enter
Browse files Browse the repository at this point in the history
  • Loading branch information
ccschmitz committed Aug 3, 2015
1 parent e256ec2 commit 7ad788a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions angucomplete-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,8 @@
if (scope.currentIndex >= 0 && scope.currentIndex < scope.results.length) {
event.preventDefault();
scope.selectResult(scope.results[scope.currentIndex]);
} else {
handleOverrideSuggestions(event);
clearResults();
scope.$apply();
}
scope.$apply();
} else if (which === KEY_DW && scope.results) {
event.preventDefault();
if ((scope.currentIndex + 1) < scope.results.length && scope.showDropdown) {
Expand Down
Loading

0 comments on commit 7ad788a

Please sign in to comment.