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

SFC useAttrs can't get events except click #5092

Closed
LockSwitchDavis opened this issue Dec 10, 2021 · 2 comments
Closed

SFC useAttrs can't get events except click #5092

LockSwitchDavis opened this issue Dec 10, 2021 · 2 comments

Comments

@LockSwitchDavis
Copy link

LockSwitchDavis commented Dec 10, 2021

Version

3.2.24

Reproduction link

sfc.vuejs.org/

What is expected?

Can get the close event via an useAttrs in Button.vue

What is actually happening?

If I use @close in App.vue and declare close as emit's name in Button.vue it can't get close property via useAttrs. But if I declare onClose as emit's name in Button.vue it can get onClose property via useAttrs, but the emit doesn't work.

@posva
Copy link
Member

posva commented Dec 10, 2021

Duplicate of #4736

@posva posva marked this as a duplicate of #4736 Dec 10, 2021
@posva posva closed this as completed Dec 10, 2021
@posva
Copy link
Member

posva commented Dec 10, 2021

Please search existing issues before opening new ones and 🙏

@vuejs vuejs locked and limited conversation to collaborators Dec 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants