Skip to content

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

@Leopoldthecoder

Description

@Leopoldthecoder

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions