Skip to content

HTML comment in custom component wrapped with <transition-group> breaks transition #4830

Closed as not planned
@Delicious-Bacon

Description

@Delicious-Bacon

Version

3.2.20

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Open the link and click the "Toggle transition" button.

What is expected?

Expected normal transition behavior.

What is actually happening?

Transition-group throws an error:

TypeError: child.el.getBoundingClientRect is not a function

I've added the <!--This comment breaks it--> HTML comment in CustomComponent.vue. Remove it and the transition will work.

I assume Vue reads the HTML comment as the second template's root element.

Had problem with this for hours because I left one HTML tag commented out in my component. Figured it out by sheer luck. >_>

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