diff --git a/src/typeahead/typeahead.js b/src/typeahead/typeahead.js index 6cb4c7565c..d19d85cd65 100644 --- a/src/typeahead/typeahead.js +++ b/src/typeahead/typeahead.js @@ -152,12 +152,13 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position']) model = parserResult.modelMapper(scope, locals); modelCtrl.$setViewValue(model); modelCtrl.$render(); - onSelectCallback(scope, { $item: item, $model: model, $label: parserResult.viewMapper(scope, locals) }); + + element[0].focus(); }; //bind keyboard events: arrows up(38) / down(40), enter(13) and tab(9), esc(27) @@ -244,4 +245,4 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position']) return function(matchItem, query) { return query ? matchItem.replace(new RegExp(escapeRegexp(query), 'gi'), '$&') : query; }; - }); \ No newline at end of file + });