Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!-- CustomInput.vue -->
<template>
...
<input type="text" :name="name" :value="value" @input="onInput" />
...
</template>
<script>
...
methods: {
onInput(event) {
this.$emit('input', event.target.value);
}
}
...
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment