title: Integrate bootstrap 3 typeahead and tags input with objects as tags
body: <p>I am having trouble integrating bootstrap 3 typeahead with tags input but with objects as tags. It works if I use only typeahead on input field, but if I integrate it with tags input then it doesn't work and I don't even get any errors which is really frustrating. Here's my code:</p>
  
  <pre class="lang-js prettyprint-override"><code>var places = [{name: "New York"}, {name: "Los Angeles"}];
  //this works
  $('input').typeahead({
      source: places
  });
  
  //this doesn't
  $('input').tagsinput({
      freeInput: false,
      confirmKeys: [44],
      typeahead: {
          source: places
      }
  });
  </code></pre>
  
  <p>Am I doing something wrong or is this a bug?</p>
  
  <p>If anyone has a working example of this I'd really appreciate some help, it can be typeahead.js instead of bootstrap 3 typeahead, I tried to use that as well and it works but then I have a problem where if I choose a suggested option from typeahead clicking enter submits the whole form instead of just accepting that option as a tag.</p>