Skip to content

Pass to 'input' event more information then just value #1315

Answered by kamerat
otistav asked this question in Q&A
Discussion options

You must be logged in to vote

You can pass the ids yourself:

<v-select 
    id="selector1"
    v-model="selected"
    :options="options" 
    @input="onInput($event, 'selector1')"
/>


onInput(input, id) {
 console.log(input, id) // 'foo' 'selector1'
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sagalbot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1315 on December 18, 2020 22:09.