以下是我需要使其生效的更改:
在typeaheadMatch指令中添加了以下行(plunker中的ui.bootstrap.typeahead.js文件的第335行)
element[0].focus();
添加的shouldFocus指令(行-314 -350)
.directive('shouldFocus', function(){ return { restrict: 'A', link: function(scope,element,attrs){ scope.$watch(attrs.shouldFocus,function(newVal,oldVal){ element[0].scrollIntoView(false); }); } };})最后在li(第372行)中添加了指令
should-focus="isActive($index)"



