typeahead: fix #1773 with $timeout