title: Bootstrap Typeahead - don't autoselect first item?
body: <p>I'm using <a href="https://gist.github.com/1866577" rel="noreferrer">this fork of the Twitter Bootstrap typeahead library</a>, which allows asynchronous data sources as well as onselect events. It's working really well for me so far, but when a user tabs out of the field (i.e. doesn't actively select a drop down entry), the onselect event is fired (which in my case, redirects the user to another page). Is there any way I can stop the onselect event being fired if a user doesn't click? Here's what I've got so far (in CoffeeScript):</p>
  
  <pre><code>$(document).ready -&gt;
    $('#inspection_name').typeahead(
      source: (typeahead, query) -&gt;
        $.ajax(
          url: "/inspections/search.json?name="+query
          success: (data) =&gt;
            return_list = []
            $(data.results.inspections).each -&gt;
              return_list.push("&lt;span data-url='" + this.uri + "/edit'&gt;" + this.name + ", " + this.town + "&lt;/span&gt;") 
  
            typeahead.process(return_list)
        )
  
      onselect: (obj) =&gt;
        window.location.href = $(obj).attr("data-url")
    )
  </code></pre>