Search code examples
javascriptvue.jslaravel-mixvue-select

Vue select click on selector event


I use vue-select and I need to trigger the option open event, I tried:

<v-select :filterable="false" onclick="this.customMethod('meow')" /> but this not support vue methods.


Solution

  • Try something like that:

    <v-select :filterable="false" @search:focus="customMethod('meow')" />
    

    If you want to see all events suported, click here.

    For example, you want to dispatch event on element is clicked, you must to use @search:focus event.

    If you want dispatch event on element is changed, you must to use @input event.