Open
Description
event listeners
shows Not declared
for a camelCase emit, this is not correct:
The code is:
App.vue
:
<template>
<Child @input-text="console.log('inputText')" />
</template>
<script setup>
import Child from './Child.vue';
</script>
Child.vue
<template>
<input @input="emit('inputText')" />
</template>
<script setup>
const emit = defineEmits([
'inputText',
])
</script>
Tested using Chrome extension Vue.js devtools
, version 7.5.6
.
Metadata
Metadata
Assignees
Labels
No labels