wffranco / vue-strap

Bootstrap components built with Vue.js
http://wffranco.github.io/vue-strap/
MIT License
338 stars 133 forks source link

Typeahead Doesn't popup the result #119

Open guyver-dash opened 7 years ago

guyver-dash commented 7 years ago

Hi there,

I've tried to search in the issues but haven't found a relevant problem.

<typeahead
                              placeholder="Github users, async via api.github.com"
                              async-key="items"
                              async="https://api.github.com/search/users?q="
                              :template="customTemplate"
                              :on-hit="githubCallback"
   ></typeahead>

My data

data(){

        return {
             USstate: ['Alabama', 'Alaska', 'Arizona'],
            asynchronous: '{{item.formatted_address}}',
            customTemplate: '<img width="18px" height="18px" :src="item.avatar_url"/><span>{{item.login}}</span>'
        }
    },

I can see the the return values and the anonymous component in the vue toolbar but it doesn't pop-up Why? TY

guyver-dash commented 7 years ago

I've tried this very simple typeahead but it still it doesn't pop up

<typeahead v-model="value" v-bind:data="options">
                 </typeahead>
return {

            value: null,
            options: ["foo", "bar", "baz"]
        }

I can see the anonymous component but it doesn't appear. TY