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

Commit

Permalink
fix(typeahead): update isOpen on escape
Browse files Browse the repository at this point in the history
This updates isOpen immediately when pressing escape button.

Fixes #5579
Closes #5587
  • Loading branch information
deeg committed Mar 5, 2016
1 parent 94c34b7 commit af2cb03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typeahead/typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.debounce', 'ui.bootstrap
evt.stopPropagation();

resetMatches();
scope.$digest();
scope.$parent.$digest();
break;
case 38:
scope.activeIdx = (scope.activeIdx > 0 ? scope.activeIdx : scope.matches.length) - 1;
Expand Down

0 comments on commit af2cb03

Please sign in to comment.