Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event listeners should consider camelCase emits #651

Open
twisterniq opened this issue Oct 30, 2024 · 0 comments
Open

event listeners should consider camelCase emits #651

twisterniq opened this issue Oct 30, 2024 · 0 comments

Comments

@twisterniq
Copy link

twisterniq commented Oct 30, 2024

event listeners shows Not declared for a camelCase emit, this is not correct:

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant