Skip to content

Transition are not ignoring html comments #1352

@AlexandreBonaventure

Description

@AlexandreBonaventure

Version

3.0.0-beta.14

Reproduction link

https://jsfiddle.net/bfag54kh/

Steps to reproduce

Put an HTML comment among Transition's children

What is expected?

It should ignore HTML comment and act as the comment is not here

What is actually happening?

It is throwing a warning
"[Vue warn]: Template compilation error: Transition expects exactly one child element or component.


If you remove the comment from the repro it is going to remove the warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions