Skip to content

Scoped Slot warns when used inside of dynamic component on regular element #10152

Closed
@MyBeta

Description

@MyBeta

Version

2.6.10

Reproduction link

https://jsfiddle.net/mybeta/1dfwsazn/

Steps to reproduce

When I use DOM Template Parsing Caveats to add a component (e.g. <tr is="custom-row"> ) I can't use scoped slots (slotProps) without receiving a warning in the console. I would like to use it this way:

<tr is="custom-row" v-slot="slotProps">
    slotProps: {{slotProps.test}}
</tr>

What is expected?

No warning.

What is actually happening?

I get the following warning in the console.

[Vue warn]: Error compiling template:
v-slot can only be used on components or <template>.

The rest looks like it works as expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions