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

Mention the limitations of slot naming with v-slot directive #2295

Open
NataliaTepluhina opened this issue Sep 13, 2019 · 1 comment
Open

Comments

@NataliaTepluhina
Copy link
Member

v-slot directive currently does not support slot names that

  • start with the square bracket (because that's how we define the dynamic slot name);
  • have whitespace;
  • have special characters used by directive attributes: i.e. . in a scoped slot name, as it will instruct Vue to treat it as a directive modifier

This should be mentioned in slots documentation as slot naming limitations.

Related discussion can be found here

@rabbitwerks
Copy link

is this still relevant to update the docs? currently the docs show using the v-slot:[dynamicName] as being the correct syntax, where as the issue attached demonstrates that the first character cannot be a space or [.
is this issue resolved with Vue now or are the docs needing to be updated?

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

2 participants