I have a component that includes a checkbox input:
<template>
<input id='one' type='checkbox' v-on:change.native="$emit('change')" />
</template>
In another component, I am utilizing this component:
<template>
....
<Checkbox v-on:change="updateChange" />
....
</template>
<script>
import Checkbox from './components/Checkbox.vue'
export default {
components: {
Checkbox
},
methods: {
updateChange: function (e) {
console.log(e);
},
}
</script>
The goal is to link the parent component method to the children component event. However, there seems to be an issue where the change
event does not trigger when the checkbox is changed.