{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5867","repository_url":"https://api.github.com/repos/angular-ui/bootstrap","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5867/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5867/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5867/events","html_url":"https://github.com/angular-ui/bootstrap/issues/5867","id":152003556,"number":5867,"title":"Typeahead Fails to Work with Arrow Keys When Using a Table in Template","user":{"login":"noamichael","id":6955807,"avatar_url":"https://avatars.githubusercontent.com/u/6955807?v=3","gravatar_id":"","url":"https://api.github.com/users/noamichael","html_url":"https://github.com/noamichael","followers_url":"https://api.github.com/users/noamichael/followers","following_url":"https://api.github.com/users/noamichael/following{/other_user}","gists_url":"https://api.github.com/users/noamichael/gists{/gist_id}","starred_url":"https://api.github.com/users/noamichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noamichael/subscriptions","organizations_url":"https://api.github.com/users/noamichael/orgs","repos_url":"https://api.github.com/users/noamichael/repos","events_url":"https://api.github.com/users/noamichael/events{/privacy}","received_events_url":"https://api.github.com/users/noamichael/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component:%20typeahead","name":"component: typeahead","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/needs:%20investigation","name":"needs: investigation","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-30T03:17:53Z","updated_at":"2016-05-02T17:07:31Z","closed_at":null,"body":"### Bug description:\r\nFor the typeahead component, when using a custom popup and result template that utilizes a table structure instead of a list, the typeahead component fails to highlight the currently selected table row when using the arrow keys and throws an error. The correct result is selected upon hitting enter, however.\r\n\r\nThe error is caused by the fact that the component explicitly looks for the LI tag in order to scroll to the selected element. [This can be seen here](https://github.com/angular-ui/bootstrap/blob/master/src/typeahead/typeahead.js#L409).\r\n\r\nMy suggestion would be to a add a directive or an id which would allow the user to specify the element to highlight/scroll to when using the arrow keys. Otherwise, this is a great autocomplete plugin.\r\n\r\n\r\n### Link to minimally-working plunker that reproduces the issue:\r\n[Plunker](https://plnkr.co/edit/ziiVYOS3Sh9eVHrLiK43?p=preview)\r\n### Version of Angular, UIBS, and Bootstrap\r\n\r\nAngular:\r\n**1.5.3**\r\nUIBS:\r\n**1.3.2**\r\nBootstrap:\r\n**3.3.6**"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/216294504","html_url":"https://github.com/angular-ui/bootstrap/issues/5867#issuecomment-216294504","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5867","id":216294504,"user":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T17:07:31Z","updated_at":"2016-05-02T17:07:31Z","body":"This smells more like an enhancement to me.  Thoughts @wesleycho or @Foxandxss?"}}