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

Error when defining slot attribute on component: 'slot' is reserved for future use in named slots #2826

Closed
btakita opened this issue May 20, 2019 · 2 comments

Comments

@btakita
Copy link
Contributor

btakita commented May 20, 2019

It appears that a component cannot be a target of a named slot.

https://svelte.dev/repl/7efd5f9467f1408a8d89a7d2a4783d15?version=3.4.1

@btakita
Copy link
Contributor Author

btakita commented May 20, 2019

It would be beneficial to allow components to be the target of a named slot, because the workaround involves adding a container element which changes the dom structure, which affects CSS selectors.

@Rich-Harris
Copy link
Member

Closing as dupe of #1037

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