diff --git a/src/typeahead/typeahead.js b/src/typeahead/typeahead.js index 8b080d615f..18db52ace1 100644 --- a/src/typeahead/typeahead.js +++ b/src/typeahead/typeahead.js @@ -308,9 +308,8 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position', 'ui.bootstrap // Keep reference to click handler to unbind it. var dismissClickHandler = function (evt) { - if (element[0] !== evt.target) { - resetMatches(); - scope.$digest(); + if (element[0] !== evt.target && scope.matches.length !== 0) { + scope.$apply(resetMatches); } };