real-world-vue
real-world-vue copied to clipboard
v-on="$listeners" conflinct with @change="updateValue"
In release vuelidateP2-finish in the BaseSelect.vue v-on="$listeners" causes the same conflict that is caused in the BaseInput.vue component. However, the source code implement the solution only for the BaseInput.vue component.
Solution
Use v-on="listeners" instead of v-on="$listeners" and add
computed: {
listeners() {
return {
...this.$listeners,
input: this.updateValue
}
}
}
to your BaseSelect.vue component
Thanks @NatanCieplinski , I got some difficulties with that one :)
Thanks