I have been using v-on:change
to trigger option changes in a vuejs app.
<select v-on:change="myMethod()">
<option v-for="(val, key) in options" :value="val">
{{key}}
</option>
</select>
But I also need to trigger the method whenever the same option is re-selected a second time.
The change
event is not triggered a second time in that case.
I cannot find lists of events for vuejs.
Here is one I found for HTML : https://www.w3schools.com/tags/ref_eventattributes.asp
I tried v-on:select
, not doing anything
EDIT:
My intent is to link the option to different 2 values, one v-model would not suffice.
On second click, a boolean property of app.$data would be inversed. That's why I'm not using v-model.