Search code examples
vue.jseventsvue-select

onChange event is not working with `vue-select` npm package


I am working with [email protected].

Btw, when I select another option, how to hook the @change event?

Current codebase like this:

<v-select
  v-model="selected"
  :options="['Vue.js','React']"
  @change="handleChange"
></v-select>
import vSelect from 'vue-select';

export default {
  components: {
    vSelect,
  },
  methods: {
    handleChange() {
      console.log('HELLO');
    }
  },
};

Solution

  • There is no such event in this library.

    Vue-select Events.

    As an alternative use @input event.