Skip to content

Event Listener @delete does not appear in attrs #1052

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

Closed
noook opened this issue May 14, 2021 · 1 comment
Closed

Event Listener @delete does not appear in attrs #1052

noook opened this issue May 14, 2021 · 1 comment

Comments

@noook
Copy link
Contributor

noook commented May 14, 2021

Following the Migration guide from Vue 2 to Vue 3, the object $listeners was removed in favor of using eventListeners in the $attrs property.

However, when using the @delete event listener, the event listener does not appear in the object.

Using a different name such as @delet does the trick.

<!-- Recognized -->
<GBadge :value="value" @delet="() => {}" />

<!-- Not recognized -->
<GBadge :value="value" @delete="() => {}" />

EDIT: Posted this in the wrong repository... Closing.

EDIT 2: After reading the thread linked in the first comment, documentation could maybe be improved as @LinusBorg said in this reply

@noook noook closed this as completed May 14, 2021
@noook
Copy link
Contributor Author

noook commented May 14, 2021

vuejs/core#3432

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