I am trying to get select value while selecting an option in a function which is called in methods, but it does not trigger the function.
My code:
from 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 methods:
methods: {
getItem(event) {
alert(event.target.value)
}
},
Nothing happens while selecting an option.