Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(autocomplete): hitting enter with an item selected no longer rese…
Browse files Browse the repository at this point in the history
…ts the selected item

Closes #2183
  • Loading branch information
Robert Messerle committed Apr 7, 2015
1 parent fcd0050 commit 7e666ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autocomplete/js/autocompleteController.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
updateSelectionMessage();
break;
case $mdConstant.KEY_CODE.ENTER:
if (self.loading || self.index < 0) return;
if (self.hidden || self.loading || self.index < 0) return;
event.preventDefault();
select(self.index);
break;
Expand Down

0 comments on commit 7e666ab

Please sign in to comment.