Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您甚至可以在 angular ui 的演示中看到问题。
http://angular-ui.github.io/bootstrap/
选择建议值后,Typeahead 会失去对输入的关注,从而阻止您提交它。单击建议的值后,如何让它专注于输入。
将此行放入 typeahead.js:148 选择函数中。
element[0].focus();
见这里:http ://plnkr.co/edit/XB5ybI?p=preview