Skip to content

Commit 99febb1

Browse files
committed
typeahead: fix angular-ui#1773 with $timeout
1 parent caeac33 commit 99febb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typeahead/typeahead.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position', 'ui.bootstrap
223223

224224
//return focus to the input element if a mach was selected via a mouse click event
225225
// use timeout to avoid $rootScope:inprog error
226-
$timeout(function() { element[0].focus(); }, 1, true);
226+
$timeout(function() { element[0].focus(); }, 0, false);
227227
};
228228

229229
//bind keyboard events: arrows up(38) / down(40), enter(13) and tab(9), esc(27)

0 commit comments

Comments
 (0)