HTML comment in custom component wrapped with <transition-group> breaks transition #4830
Labels
has workaround
A workaround has been found to avoid the problem
🐞 bug
Something isn't working
🔩 p2-edge-case
scope: transition
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:
I've added the
<!--This comment breaks it-->
HTML comment inCustomComponent.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. >_>
The text was updated successfully, but these errors were encountered: