Added "blurred" event accessible to implementers
I use typeahead in conjunction with tagsManager (http://welldonethings.com/tags/manager). I use on('typeahead:selected') to add a completed tag to the tag set. The desired result is that tagsManager should create a new tag, and the user should have a blank entry box. The problem is that if you immediately click away after finishing one entry, the blur event sets the new entry box to the text of the latest entry, rather than leaving it blank. The least intrusive fix I could come up with is to expose the "typeahead:blurred" event via the api.
Why couldn't you just reset the value of the input when a tag is selected i.e. $('.typeahead').typeahead('val', '')?
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.