4👍
You should emit an event with name input
:
@input="$emit('input', $event.target.value)"
- [Vuejs]-Why is this :class="{}" not working? vueJs
- [Vuejs]-How can I prevent randomly positioned divs from overlapping on small/mobile screens? when elements are created in created() hook
-1👍
I solved it as follows
methods: {
changeSelect: function () {
this.$emit('input', this.modelValue);
},
},
<template>
<div>
<v-select
:label="label"
@input="changeSelect()"
v-model="modelValue"
:items="items"
></v-select>
<p>{{ modelValue }}</p>
</div>
</template>
- [Vuejs]-Problems with extracting params in nuxt 3
- [Vuejs]-Vue project – Uncaught TypeError: Cannot read properties of null (reading 'offsetWidth') error for a custom js script
Source:stackexchange.com