When I select an option, I am trying to retrieve the selected value in a function called within my methods. However, the function does not seem to be triggering.
This is my code:
From the template :
<q-select filled v-model="invoice_product.tarrif_item_id" @change="getItem($event)" use-input
input-debounce="0"
label="Search Item Name" :options="options" @filter="filterFn" dense behavior="menu"
class="q-ma-xs" option-value="id" option-label="name" emit-value map-options>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
No results
</q-item-section>
</q-item>
</template>
</q-select>
From the methods:
methods: {
getItem(event) {
alert(event.target.value)
}
},
Despite my efforts, nothing seems to happen when I select an option.