I am having trouble integrating bootstrap 3 typeahead with tag input but with objects as tags. It works if I use only typeahead in the input field, but if I integrate it with tag input, this will not work, and I donβt even get any errors that really upset. Here is my code:
var places = [{name: "New York"}, {name: "Los Angeles"}];
Am I doing something wrong or is it a mistake?
If someone has a working example of this, I would really appreciate some help, it could be typeahead.js instead of bootstrap 3 typeahead, I tried to use this too, and it works, but then I have a problem if I select the suggested one an option from typeahead, by pressing the enter button, sends the entire form instead of just accepting this option as a tag.
source share