Skip to content

fix: remove the restriction for name, which no longer applies #531

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

Description of Problem

For the name option, I don't think this line still applies in Vue 3:

Restriction: only respected when used as a component option.

The distinction between component options and root instance options no longer exists. We now only have component options.

If you're curious, here's a demo showing name working fine on the root component: https://jsfiddle.net/skirtle/7ocdjz65/

Proposed Solution

Remove that line.

Copy link
Member

@NataliaTepluhina NataliaTepluhina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skirtles-code thank you for the fix!

@NataliaTepluhina NataliaTepluhina merged commit 7d986f3 into vuejs:master Sep 21, 2020
nick-lai pushed a commit to nick-lai/docs-next that referenced this pull request Dec 2, 2020
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