Subscribe on changes!

Transition uses wrong leave-to class when HTML comments exists as template root

avatar
Mar 2nd 2022

Version

3.2.31

Reproduction link

stackblitz.com

Steps to reproduce

Refer the stackblitz link and reproduce the issue by clicking on "Page A" and "Page B" navigations.

What is expected?

Transition should work as expected and noted by the transition-name regardless of existence of comments, i.e. Page A should slide left Page B should slide right

What is actually happening?

Leave transition is not updated for Page component with comments. Page A slides right on leave transition

avatar
Apr 18th 2022

@posva I have tested, PR https://github.com/vuejs/core/pull/5268 can not solve this issue, so it's not a duplicate.