vue-search-select
vue-search-select copied to clipboard
How to pass extra parameters to @select event handler
I'd like to do something like this:
@select="onSelect(item, otherParam)"
Thanks
This does the trick, but I don't like it:
@select="(item) => {onSelect(1, item)}"
This can be implemented with watch function. model-select :options="options" v-model="item" placeholder="select item" /model-select
watch: { item: { handler () { // event }, deep: true } }