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.
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.
If your method customMethod()
is in the same code page (in METHOD part) than your line, call it without this.
before method. And onclick is @click="..."
or v-on:click="..."
So just @click="myMethod"
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.