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

Emits option not merged correctly with mixins #1562

Closed
AlexandreBonaventure opened this issue Jul 10, 2020 · 0 comments
Closed

Emits option not merged correctly with mixins #1562

AlexandreBonaventure opened this issue Jul 10, 2020 · 0 comments

Comments

@AlexandreBonaventure
Copy link
Contributor

Version

3.0.0-beta.20

Reproduction link

https://jsfiddle.net/c8q3spj9/1/

Steps to reproduce

Create a component with emits option defined both in a mixin and on the component itself.

What is expected?

emits object should be correctly merge

What is actually happening?

the emits option from the component seems to override the one from the mixins instead of merging.


In the repro Vue warns: [Vue warn]: Component emitted event "update:modelValue" but it is neither declared in the emits option where it should not.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 2023
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

1 participant