bassjobsen / Bootstrap-3-Typeahead

The Typeahead plugin from Twitter's Bootstrap 2 ready to use with Bootstrap 3 and Bootstrap 4
1.68k stars 1.33k forks source link

Tags Input integration with objects as tags #182

Open planta opened 8 years ago

planta commented 8 years ago

I am having trouble integrating this 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:

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
    }
});

Am I doing something wrong or is this a bug?

JarJak commented 8 years ago

some problem here

merolhack commented 8 years ago

Read all comments in this issue: https://github.com/bassjobsen/Bootstrap-3-Typeahead/issues/40