diff --git a/src/typeahead/typeahead.js b/src/typeahead/typeahead.js index fd19ed1632..4a64b489e5 100644 --- a/src/typeahead/typeahead.js +++ b/src/typeahead/typeahead.js @@ -379,7 +379,8 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position']) if (evt.which === 40) { scope.activeIdx = (scope.activeIdx + 1) % scope.matches.length; scope.$digest(); - + popUpEl.children()[scope.activeIdx].scrollIntoView(false); + } else if (evt.which === 38) { scope.activeIdx = (scope.activeIdx > 0 ? scope.activeIdx : scope.matches.length) - 1; scope.$digest();