Skip to content

Add an emits option to style guide examples that use $emit #941

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

Merged

Conversation

skirtles-code
Copy link
Contributor

There are two style guide examples that use $emit. This PR introduces a corresponding emits option for them.

For the first example, with the input event, this is a required change to prevent the native event being passed up. The example doesn't work as currently written. This was something I noted in the discussion for #859.

For the second example, it does work without the emits but I believe using emits would still be considered best practice.

@NataliaTepluhina NataliaTepluhina merged commit 1dfd434 into vuejs:master Mar 12, 2021
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

Successfully merging this pull request may close these issues.

2 participants