Subscribe on changes!

Root comment breaking the `<Transition>` without any warning

avatar
Jun 9th 2022

Vue version

3.2.37

Link to minimal reproduction

https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8YnV0dG9uIEBjbGljaz1cImlzSG9tZSA9ICFpc0hvbWVcIj5cbiAgICBUb2dnbGVcbiAgPC9idXR0b24+XG4gIDx0cmFuc2l0aW9uIG5hbWU9XCJmYWRlXCIgbW9kZT1cIm91dC1pblwiPlxuICAgIDxIb21lIHYtaWY9XCJpc0hvbWVcIj48L0hvbWU+XG4gICAgPEFib3V0IHYtZWxzZT48L0Fib3V0PlxuICA8L3RyYW5zaXRpb24+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IHNldHVwIGxhbmc9XCJ0c1wiPlxuaW1wb3J0IHsgcmVmIH0gZnJvbSAndnVlJ1xuaW1wb3J0IEhvbWUgZnJvbSAnLi9Ib21lLnZ1ZSdcbmltcG9ydCBBYm91dCBmcm9tICcuL0Fib3V0LnZ1ZSdcblxuY29uc3QgaXNIb21lID0gcmVmKHRydWUpXG48L3NjcmlwdD5cblxuPHN0eWxlPlxuLmZhZGUtZW50ZXItYWN0aXZlIHtcbiAgYW5pbWF0aW9uOiBmYWRlLWluIDMwMG1zO1xufVxuXG4uZmFkZS1sZWF2ZS1hY3RpdmUge1xuICBhbmltYXRpb246IGZhZGUtb3V0IDMwMG1zO1xufVxuXG5Aa2V5ZnJhbWVzIGZhZGUtaW4ge1xuICAwJSB7XG4gICAgb3BhY2l0eTogMCU7XG4gIH1cblxuICAxMDAlIHtcbiAgICBvcGFjaXR5OiAxMDAlO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgZmFkZS1vdXQge1xuICAwJSB7XG4gICAgb3BhY2l0eTogMTAwJTtcbiAgfVxuXG4gIDEwMCUge1xuICAgIG9wYWNpdHk6IDAlO1xuICB9XG59XG48L3N0eWxlPlxuIiwiaW1wb3J0LW1hcC5qc29uIjoie1xuICBcImltcG9ydHNcIjoge1xuICAgIFwidnVlXCI6IFwiaHR0cHM6Ly9zZmMudnVlanMub3JnL3Z1ZS5ydW50aW1lLmVzbS1icm93c2VyLmpzXCIsXG4gICAgXCJ2dWUvc2VydmVyLXJlbmRlcmVyXCI6IFwiaHR0cHM6Ly9zZmMudnVlanMub3JnL3NlcnZlci1yZW5kZXJlci5lc20tYnJvd3Nlci5qc1wiXG4gIH1cbn0iLCJIb21lLnZ1ZSI6Ijx0ZW1wbGF0ZT5cbiAgPGRpdiBjbGFzcz1cImhvbWVcIj5cbiAgICBIb21lXG4gIDwvZGl2PlxuPC90ZW1wbGF0ZT5cbiIsIkFib3V0LnZ1ZSI6Ijx0ZW1wbGF0ZT5cbiAgPCEtLSBCcmVha2luZyBDb21tZW50IC0tPlxuICA8ZGl2IGNsYXNzPVwiYWJvdXRcIj5cbiAgICBBYm91dFxuICA8L2Rpdj5cbjwvdGVtcGxhdGU+XG4ifQ==

Steps to reproduce

Click the Toggle button twice, the <Home> component missing.

What is expected?

<Home> and <About> components can be switched back and forth.

What is actually happening?

When switch to <About> component with root comment, <Transition> breaking.

Console does not have any warning.

System Info

No response

Any additional comments?

I think it should log a warning to admonish this usage, if this is a limitation.

avatar
Jun 9th 2022

This look like 'Transition Modes' problem.

avatar
Jun 29th 2022

I have the same problem.