{"action":"opened","issue":{"url":"https://api.github.com/repos/mgcrea/angular-strap/issues/2014","labels_url":"https://api.github.com/repos/mgcrea/angular-strap/issues/2014/labels{/name}","comments_url":"https://api.github.com/repos/mgcrea/angular-strap/issues/2014/comments","events_url":"https://api.github.com/repos/mgcrea/angular-strap/issues/2014/events","html_url":"https://github.com/mgcrea/angular-strap/issues/2014","id":126881380,"number":2014,"title":"Limit typeahead to available options","user":{"login":"stevehipwell","id":6552347,"avatar_url":"https://avatars.githubusercontent.com/u/6552347?v=3","gravatar_id":"","url":"https://api.github.com/users/stevehipwell","html_url":"https://github.com/stevehipwell","followers_url":"https://api.github.com/users/stevehipwell/followers","following_url":"https://api.github.com/users/stevehipwell/following{/other_user}","gists_url":"https://api.github.com/users/stevehipwell/gists{/gist_id}","starred_url":"https://api.github.com/users/stevehipwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevehipwell/subscriptions","organizations_url":"https://api.github.com/users/stevehipwell/orgs","repos_url":"https://api.github.com/users/stevehipwell/repos","events_url":"https://api.github.com/users/stevehipwell/events{/privacy}","received_events_url":"https://api.github.com/users/stevehipwell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-15T14:19:40Z","updated_at":"2016-01-15T14:19:40Z","closed_at":null,"body":"Having a typeahead that only accepts options that are present in the suggestions would be really useful. Especially where the typeahead is being bound to an object or an id, as currently if the user types in an unknown value the bound object is set to a string.\r\n\r\n*Example of typeahead that has this issue:*\r\n```\r\n<input type=\"text\" bs-typeahead ng-model=\"ctrl.selectedId\" bs-options=\"option.id as option.name for option in ctrl.availableOptions\" placeholder=\"Select an option..\" />\r\n```"}}