In a vue app using quasar, I have three file picker fields, and when one of those fields change, I want to call a specific function. I want to be able to pass the v-model as a variable into the function so I can update the v-model using the function.
See more problem description in the onSelected function description.
For example, I may want to bind the v-model of whatever field was changed to a new variable. So how would I tell the function what v-model was passed at the @change event?
<q-file
v-model="fieldOne"
@change="onSelected()"
></q-file>
<q-file
v-model="fieldTwo"
@change="onSelected()"
></q-file>
<q-file
v-model="fieldThree"
@change="onSelected()"
></q-file>
function onSelected(event) {
// I would like to update the v-model of the field that was
// subject to the @change event. event.target.value doesn't
// work. How to I work with the specific v-model that
// triggered
//the @change event?
}