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

How can a functional component be used as a named slot of another component? #3872

Closed
Leopoldthecoder opened this issue Oct 8, 2016 · 1 comment
Labels

Comments

@Leopoldthecoder
Copy link

Vue.js version

2.0.1

Reproduction Link

https://jsfiddle.net/x3k60w7c/

Steps to reproduce

Just run the demo

What is Expected?

Default slot fallback
[inner]

What is actually happening?

[inner]
Named slot fallback

inner should replace the <slot name="abc"> part of outer, but instead it replaces the <slot> part. Seems its slot attribute is not working.
It works fine if functional: true, is deleted (line 15). So is functional component not supposed to be a named slot of another component or am I using it wrong?

@yyx990803
Copy link
Member

This should work, indeed a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants