Bogart
Bogart

Reputation: 73

how to add @keypress in vue.js v-select

<v-select :value.sync="selected" :options="options" @keypress="function()"> 
</v-select>

I tried the code above, but it doesn't seem to work. is this even possible or is there another way?

Thanks in Advance

Upvotes: 1

Views: 6058

Answers (1)

samayo
samayo

Reputation: 16485

You should add the .native modifier to listen on events of components, so change the the @keypress="" to @keypress.native=""

Upvotes: 4

Related Questions