Sign in
Log inSign up
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)
        }
    }
}
Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct