My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Vue.js doesn't detect changes while using Selectize.js?

Vue.js doesn't detect changes while using Selectize.js?

Janet Brown's photo
Janet Brown
·Apr 13, 2016

Hi, I use Selectize.js for my select box (loading remote data). The problem is, when I select something, Vue doesn't detect it.

Is this a bug? How to make this working? Thank you.

<select v-model="selection" @change="change">
...
</select>

new Vue({
    el: '#app',

    data: {
        items: ['your', 'items', 'here'],
        selection: null 
    },

    methods: {
        change: function () {
             console.log(this.selection)
        }
    }
}