Skip to content

Regression in interaction between v-slots and v-if #9658

Closed
@patrickas

Description

@patrickas

Version

2.6.8

Reproduction link

http://jsfiddle.net/6bk180pn/2/

Steps to reproduce

The fiddle contains three parts.
Part 1 is the old working syntax.
Part 2 is the commented out new syntax that does not work anymore, un-commenting this part triggers the error.
Part 3 is a workaround using the new syntax but that requires copying part of the code of the component to the parent so it works.

What is expected?

template is only included when the condition is true

What is actually happening?

syntax error


This seems like a regression especially since the old functionality will be discontinued in future releases.

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